projects
/
cparser
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b2e2a71
)
Remove duplicate test.
author
Christoph Mallon
<christoph.mallon@gmx.de>
Fri, 8 Jul 2011 11:36:26 +0000
(13:36 +0200)
committer
Christoph 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
patch
|
blob
|
history
diff --git
a/format_check.c
b/format_check.c
index
3440a02
..
9e991d8
100644
(file)
--- a/
format_check.c
+++ b/
format_check.c
@@
-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;