]> git.marmaro.de Git - mmh/blobdiff - sbr/fmt_scan.c
[bug #4296] PUTD() macro can't hack 10 digit values
[mmh] / sbr / fmt_scan.c
index 4f79bf6a4964a6eb3b9a05505e815571c7cf3e12..0a2397ba1394c864f928eb8bd69522bb2200a07f 100644 (file)
@@ -511,10 +511,7 @@ fmt_scan (struct format *format, char *scanl, int width, int *dat)
            value = dat[fmt->f_value];
            break;
        case FT_LV_STRLEN:
-           if (str != NULL)
-                   value = strlen(str);
-           else
-                   value = 0;
+           value = strlen(str);
            break;
        case FT_LV_CHAR_LEFT:
            value = width - (cp - scanl);