X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=sbr%2Ffmt_scan.c;h=0a2397ba1394c864f928eb8bd69522bb2200a07f;hp=4f79bf6a4964a6eb3b9a05505e815571c7cf3e12;hb=cc9d0626d137ec556f12d133cf106ac7c4c5b5a7;hpb=0e02bd46c1b4931073f3e865bbad4deb15691fd7 diff --git a/sbr/fmt_scan.c b/sbr/fmt_scan.c index 4f79bf6..0a2397b 100644 --- a/sbr/fmt_scan.c +++ b/sbr/fmt_scan.c @@ -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);