ref: 21d0b402d3c895056721d12b259edfe1d985d353
parent: a30564955778896c15f8233df8552bb55b07ce93
author: Anthony J. Bentley <[email protected]>
date: Wed Jan 7 17:59:06 EST 2015
Don't unnecessarily initialize variables.
--- a/src/fix/main.c
+++ b/src/fix/main.c
@@ -70,15 +70,15 @@
bool resize = false;
bool setversion = false;
- char *title = NULL; /* game title in ASCII */
- char *id = NULL; /* game ID in ASCII */
- char *newlicensee = NULL; /* new licensee ID, two ASCII characters */
+ char *title; /* game title in ASCII */
+ char *id; /* game ID in ASCII */
+ char *newlicensee; /* new licensee ID, two ASCII characters */
- int licensee = -1; /* old licensee ID */
- int cartridge = -1; /* cartridge hardware ID */
- int ramsize = -1; /* RAM size ID */
- int version = -1; /* mask ROM version number */
- int padvalue = -1; /* to pad the rom with if it changes size */
+ int licensee; /* old licensee ID */
+ int cartridge; /* cartridge hardware ID */
+ int ramsize; /* RAM size ID */
+ int version; /* mask ROM version number */
+ int padvalue; /* to pad the rom with if it changes size */
while ((ch = getopt(argc, argv, "Cci:jk:l:m:n:p:sr:t:v")) != -1) {
switch (ch) {