]> diplodocus.org Git - nmh/commitdiff
Add missing variable initializations on fmt_scan().
authorLyndon Nerenberg <lyndon@orthanc.ca>
Tue, 17 Jun 2014 00:03:06 +0000 (17:03 -0700)
committerLyndon Nerenberg <lyndon@orthanc.ca>
Tue, 17 Jun 2014 00:03:06 +0000 (17:03 -0700)
sbr/fmt_scan.c

index ec94897eccfa566009ff707a659dc77e94ee7500..8f59e4b4e5b80b7dfa57acfd70d4d906a09b4502 100644 (file)
@@ -495,9 +495,9 @@ fmt_scan (struct format *format, char *scanl, size_t max, int width, int *dat,
            {
                char *unitcp;
                unsigned int whole, tenths;
-               unsigned int scale;
+               unsigned int scale = 0;
                unsigned int val = (unsigned int)value;
-               char *kibisuff;
+               char *kibisuff = NULL;
 
                switch (fmt->f_type) {
                case FT_LS_KILO: scale = 1000; kibisuff = ""; break;