Apply upstream commit 33312fd828e59c78ae4ee30fd70d0ca109748cf0 (by
zoulasc) to contrib/file: don't write a char to a pointer. MFC after: 3 days
This commit is contained in:
parent
6b1fe0f9ac
commit
b71498e619
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=259724
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user