From 4b0dfd4f4add69a0c5f1b1984ae049ba8df2cc8d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Antonio=20Ni=C3=B1o=20D=C3=ADaz?= Date: Mon, 21 Aug 2017 23:35:45 +0100 Subject: [PATCH] Initialize variables in rgbfix MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Antonio Niño Díaz --- src/fix/main.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/fix/main.c b/src/fix/main.c index 05c227f0..59250b62 100644 --- a/src/fix/main.c +++ b/src/fix/main.c @@ -64,11 +64,11 @@ main(int argc, char *argv[]) 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) {