Mercurial > hg > octave-nkf > gnulib-hg
changeset 6483:d39421bbc830
(__argp_fmtstream_update): Fix coredump
author | Sergey Poznyakoff <gray@gnu.org.ua> |
---|---|
date | Sat, 10 Dec 2005 21:36:56 +0000 |
parents | c5451290271b |
children | 0346b7d45837 |
files | lib/argp-fmtstream.c |
diffstat | 1 files changed, 4 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/lib/argp-fmtstream.c +++ b/lib/argp-fmtstream.c @@ -246,9 +246,10 @@ Oh well. Put it on an overlong line by itself. */ p = buf + (r + 1 - fs->point_col); /* Find the end of the long word. */ - do - ++p; - while (p < nl && !isblank (*p)); + if (p < nl) + do + ++p; + while (p < nl && !isblank (*p)); if (p == nl) { /* It already ends a line. No fussing required. */