From 33312fd828e59c78ae4ee30fd70d0ca109748cf0 Mon Sep 17 00:00:00 2001 From: Christos Zoulas Date: Mon, 18 Nov 2013 17:54:58 +0000 Subject: [PATCH] don't write a char to a pointer. --- src/compress.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/compress.c b/src/compress.c index c30bfcdc..675e9f67 100644 --- a/src/compress.c +++ b/src/compress.c @@ -35,7 +35,7 @@ #include "file.h" #ifndef lint -FILE_RCSID("@(#)$File: compress.c,v 1.70 2012/11/07 17:54:48 christos Exp $") +FILE_RCSID("@(#)$File: compress.c,v 1.71 2013/07/21 21:06:41 rrt Exp $") #endif #include "magic.h" @@ -479,7 +479,7 @@ uncompressbuf(struct magic_set *ms, int fd, size_t method, #endif free(*newch); n = 0; - newch[0] = '\0'; + *newch = NULL; goto err; } else { n = r; -- 2.50.0