Oops. I missed a 0 => '\0' correction.

Thanks to: Ruslan
This commit is contained in:
Tim Kientzle 2005-02-12 23:33:31 +00:00
parent ca45b7e81f
commit a090347fe4
2 changed files with 2 additions and 2 deletions

View File

@ -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);
/*

View File

@ -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);
/*