MFC r259724:

Apply upstream commit 33312fd828e59c78ae4ee30fd70d0ca109748cf0 (by
zoulasc) to contrib/file:

  don't write a char to a pointer.
This commit is contained in:
dim 2013-12-25 00:48:08 +00:00
parent 525a40cc11
commit d51fec8133

View File

@ -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;