Commit 7dcdb2ce authored by Max Kellermann's avatar Max Kellermann

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).
parent e6ea7ffd
...@@ -49,7 +49,7 @@ zip_open(char * pathname) ...@@ -49,7 +49,7 @@ zip_open(char * pathname)
// open archive // open archive
context->list = NULL; context->list = NULL;
context->dir = zzip_dir_open(pathname, 0); context->dir = zzip_dir_open(pathname, NULL);
if (context->dir == NULL) { if (context->dir == NULL) {
g_warning("zipfile %s open failed\n", pathname); g_warning("zipfile %s open failed\n", pathname);
return NULL; return NULL;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment