Oops. I missed a 0 => '\0' correction.
Thanks to: Ruslan
This commit is contained in:
parent
ca45b7e81f
commit
a090347fe4
@ -82,7 +82,7 @@ file_open(struct archive *a, void *client_data)
|
||||
mine = client_data;
|
||||
flags = O_WRONLY | O_CREAT | O_TRUNC;
|
||||
|
||||
if (mine->filename[0] != 0) {
|
||||
if (mine->filename[0] != '\0') {
|
||||
mine->fd = open(mine->filename, flags, 0666);
|
||||
|
||||
/*
|
||||
|
@ -82,7 +82,7 @@ file_open(struct archive *a, void *client_data)
|
||||
mine = client_data;
|
||||
flags = O_WRONLY | O_CREAT | O_TRUNC;
|
||||
|
||||
if (mine->filename[0] != 0) {
|
||||
if (mine->filename[0] != '\0') {
|
||||
mine->fd = open(mine->filename, flags, 0666);
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user