archive/zip: pass NULL instead of 0 to zzip_dir_open()

The second parameter of zzip_dir_open() is a pointer.  Pass the NULL
pointer instead of 0 (with implicit conversion at compile time).
This commit is contained in:
Max Kellermann 2009-05-04 09:46:15 +02:00
parent e6ea7ffdcb
commit 7dcdb2ce39

View File

@ -49,7 +49,7 @@ zip_open(char * pathname)
// open archive
context->list = NULL;
context->dir = zzip_dir_open(pathname, 0);
context->dir = zzip_dir_open(pathname, NULL);
if (context->dir == NULL) {
g_warning("zipfile %s open failed\n", pathname);
return NULL;
@ -57,7 +57,7 @@ zip_open(char * pathname)
while (zzip_dir_read(context->dir, &dirent)) {
//add only files
if (dirent.st_size > 0) {
if (dirent.st_size > 0) {
context->list = g_slist_prepend(context->list,
g_strdup(dirent.d_name));
}