ref: 4b0dfd4f4add69a0c5f1b1984ae049ba8df2cc8d
parent: 2d117f68c983271c73089271e631cc2485786479
author: Antonio Niño Díaz <[email protected]>
date: Mon Aug 21 19:35:45 EDT 2017
Initialize variables in rgbfix Signed-off-by: Antonio Niño Díaz <[email protected]>
--- a/src/fix/main.c
+++ b/src/fix/main.c
@@ -64,11 +64,11 @@
char *id; /* game ID in ASCII */
char *newlicensee; /* new licensee ID, two ASCII characters */
- 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 */
+ int licensee = 0; /* old licensee ID */
+ int cartridge = 0; /* cartridge hardware ID */
+ int ramsize = 0; /* RAM size ID */
+ int version = 0; /* mask ROM version number */
+ int padvalue = 0; /* to pad the rom with if it changes size */
while ((ch = getopt(argc, argv, "Cci:jk:l:m:n:p:sr:t:Vv")) != -1) {
switch (ch) {