projects
/
platform
/
upstream
/
coreutils.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
04f1470
)
* src/seq.c (long_double_format): Add a comment.
author
Jim Meyering
<meyering@redhat.com>
Sun, 2 Mar 2008 09:14:18 +0000
(10:14 +0100)
committer
Jim Meyering
<meyering@redhat.com>
Fri, 21 Mar 2008 14:59:41 +0000
(15:59 +0100)
src/seq.c
patch
|
blob
|
history
diff --git
a/src/seq.c
b/src/seq.c
index
c7e8cb9
..
64bbeee
100644
(file)
--- a/
src/seq.c
+++ b/
src/seq.c
@@
-194,7
+194,7
@@
validate_format (char const *fmt)
++p;
}
}
- if (
! n_directives
)
+ if (
n_directives == 0
)
{
error (0, 0, _("no %% directive in format string %s"), quote (fmt));
usage (EXIT_FAILURE);
@@
-236,6
+236,7
@@
long_double_format (char const *fmt, struct layout *layout)
length_modifier_offset = i;
has_L = (fmt[i] == 'L');
i += has_L;
+ /* In a valid format string, fmt[i] must be one of these specifiers. */
if (fmt[i] == '\0' || ! strchr ("efgaEFGA", fmt[i]))
return NULL;