diff options
| author | Tim Kientzle <kientzle@FreeBSD.org> | 2005-02-12 23:33:31 +0000 |
|---|---|---|
| committer | Tim Kientzle <kientzle@FreeBSD.org> | 2005-02-12 23:33:31 +0000 |
| commit | a090347fe4cb1f165bf502927087c74c30a6f32c (patch) | |
| tree | 16256944907963b37c090030bc4e50c90bd6710b /lib | |
| parent | ca45b7e81f5e8c8848e3339aeb70439a0c43c746 (diff) | |
Notes
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/libarchive/archive_write_open_file.c | 2 | ||||
| -rw-r--r-- | lib/libarchive/archive_write_open_filename.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/libarchive/archive_write_open_file.c b/lib/libarchive/archive_write_open_file.c index 548926801333..106420f3ed4f 100644 --- a/lib/libarchive/archive_write_open_file.c +++ b/lib/libarchive/archive_write_open_file.c @@ -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); /* diff --git a/lib/libarchive/archive_write_open_filename.c b/lib/libarchive/archive_write_open_filename.c index 548926801333..106420f3ed4f 100644 --- a/lib/libarchive/archive_write_open_filename.c +++ b/lib/libarchive/archive_write_open_filename.c @@ -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); /* |
