diff options
author | Sami Kerola | 2013-07-07 21:54:48 +0200 |
---|---|---|
committer | Karel Zak | 2013-07-09 14:26:06 +0200 |
commit | c630db891a1f6177b4ed136d2e20b12728096196 (patch) | |
tree | 42f861574248e46d86c186939422f2d8bfa600bd /text-utils/column.c | |
parent | ul: use string printing function (diff) | |
download | kernel-qcow2-util-linux-c630db891a1f6177b4ed136d2e20b12728096196.tar.gz kernel-qcow2-util-linux-c630db891a1f6177b4ed136d2e20b12728096196.tar.xz kernel-qcow2-util-linux-c630db891a1f6177b4ed136d2e20b12728096196.zip |
column: dereference of null pointer [clang-analyzer]
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Diffstat (limited to 'text-utils/column.c')
-rw-r--r-- | text-utils/column.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/text-utils/column.c b/text-utils/column.c index e29ea473a..2084ba6d1 100644 --- a/text-utils/column.c +++ b/text-utils/column.c @@ -392,7 +392,7 @@ static int input(FILE *fp, int *maxlength, wchar_t ***list, int *entries) continue; } lineno++; - if (!feof(fp)) + if (!feof(fp) && p) *p = '\0'; len = wcs_width(buf); /* len = p - buf; */ if (*maxlength < len) |