summaryrefslogtreecommitdiffstats
path: root/contrib/file
diff options
context:
space:
mode:
authordim <dim@FreeBSD.org>2013-12-25 00:48:08 +0000
committerdim <dim@FreeBSD.org>2013-12-25 00:48:08 +0000
commitd51fec81332f36aec4c0836cfc2ba9861b7e7c93 (patch)
tree23f09a654a9e042bb574a397f7b32eae0ae69e64 /contrib/file
parent525a40cc110893ec7c5172cbaed7f8f348489600 (diff)
downloadFreeBSD-src-d51fec81332f36aec4c0836cfc2ba9861b7e7c93.zip
FreeBSD-src-d51fec81332f36aec4c0836cfc2ba9861b7e7c93.tar.gz
MFC r259724:
Apply upstream commit 33312fd828e59c78ae4ee30fd70d0ca109748cf0 (by zoulasc) to contrib/file: don't write a char to a pointer.
Diffstat (limited to 'contrib/file')
-rw-r--r--contrib/file/compress.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/file/compress.c b/contrib/file/compress.c
index 4308abf..2d8d77f 100644
--- a/contrib/file/compress.c
+++ b/contrib/file/compress.c
@@ -480,7 +480,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;
OpenPOWER on IntegriCloud