From 18ce670a33ae31348d26da0c3737853af085e3b5 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Sun, 2 Mar 2008 10:14:18 +0100 Subject: * src/seq.c (long_double_format): Add a comment. --- src/seq.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/seq.c b/src/seq.c index c7e8cb971..64bbeee00 100644 --- 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; -- cgit v1.2.3-70-g09d2