Remove duplicate test.
authorChristoph Mallon <christoph.mallon@gmx.de>
Fri, 8 Jul 2011 11:36:26 +0000 (13:36 +0200)
committerChristoph Mallon <christoph.mallon@gmx.de>
Fri, 8 Jul 2011 11:48:02 +0000 (13:48 +0200)
Doing the test later on is sufficient.
The code inbetween does nothing when encountering '\0'.

format_check.c

index 3440a02..9e991d8 100644 (file)
@@ -617,10 +617,6 @@ static void check_scanf_format(const call_argument_t *arg,
                if (fmt != '%')
                        continue;
                fmt = *(++c);
-               if (fmt == '\0') {
-                       warningf(WARN_FORMAT, pos, "dangling '%%' in format string");
-                       break;
-               }
                if (fmt == '%')
                        continue;