diff options
author | Jim Meyering <meyering@redhat.com> | 2008-03-02 10:14:18 +0100 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2008-03-21 15:59:41 +0100 |
commit | 18ce670a33ae31348d26da0c3737853af085e3b5 (patch) | |
tree | e8066ab9dc3a8e6b0f841157e48e693f9ac0989e /src | |
parent | 04f1470c51cce0078aef1844b8e78d84f1e045f4 (diff) | |
download | coreutils-18ce670a33ae31348d26da0c3737853af085e3b5.tar.xz |
* src/seq.c (long_double_format): Add a comment.
Diffstat (limited to 'src')
-rw-r--r-- | src/seq.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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; |