+2009-09-05 Bruno Haible <bruno@clisp.org>
+
+ * write-po.c (wrap): Remove unused initialization.
+ * x-glade.c (comment_handler): Likewise.
+ * xgettext.c (flag_context_list_table_insert): Add comment.
+ Found by clang's static analyzer.
+
2009-08-30 Bruno Haible <bruno@clisp.org>
Accommodate the Solaris iconv_open function, which cannot convert
/* GNU gettext - internationalization aids
- Copyright (C) 1995-1998, 2000-2008 Free Software Foundation, Inc.
+ Copyright (C) 1995-1998, 2000-2009 Free Software Foundation, Inc.
This file was written by Peter Miller <millerp@canb.auug.org.au>
/* Locate the FMTDIR_* bits and transform the array to an array
of attributes. */
fmtdirattr = XCALLOC (len, char);
- fdap = fmtdirattr;
fd_end = fmtdir + len;
for (fdp = fmtdir, fdap = fmtdirattr; fdp < fd_end; fdp++, fdap++)
if (*fdp & FMTDIR_START)
/* Split multiline comment into lines, and remove leading and trailing
whitespace. */
char *copy = xstrdup (data);
- char *p = copy;
+ char *p;
char *q;
for (p = copy; (q = strchr (p, '\n')) != NULL; p = q + 1)
{
flag_context_list_ty *list = (flag_context_list_ty *)entry;
flag_context_list_ty **lastp = NULL;
+ /* Invariant: list == (lastp != NULL ? *lastp : entry). */
while (list != NULL && list->argnum < argnum)
{