From a6cdaa885044b935add17175b80ec2806e682936 Mon Sep 17 00:00:00 2001 From: Peter Howkins Date: Tue, 3 Jul 2018 18:49:43 +0100 Subject: [PATCH] dtstyle: Coverity 87337 --- cde/programs/dtstyle/I18nEnv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cde/programs/dtstyle/I18nEnv.c b/cde/programs/dtstyle/I18nEnv.c index 674624ee..b8565a79 100644 --- a/cde/programs/dtstyle/I18nEnv.c +++ b/cde/programs/dtstyle/I18nEnv.c @@ -465,7 +465,7 @@ ReadPipe ( nbytes = read (*fd, buf, 512); - if (nbytes) { + if (nbytes > 0) { savebuf = XtRealloc(savebuf, savebuf_bytes + nbytes); memcpy(savebuf+savebuf_bytes, buf, nbytes); savebuf_bytes += nbytes ; -- 2.25.1