aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2009-05-04 09:46:15 +0200
committerMax Kellermann <max@duempel.org>2009-05-04 09:46:15 +0200
commit7dcdb2ce39654d9975f3264e72cd46e7251ca585 (patch)
treee33804b3fff091a75b94e4012500881c562e5dcb
parente6ea7ffdcba772d2bda4b2e9a042beffd6beb7bc (diff)
downloadmpd-7dcdb2ce39654d9975f3264e72cd46e7251ca585.tar.gz
mpd-7dcdb2ce39654d9975f3264e72cd46e7251ca585.tar.xz
mpd-7dcdb2ce39654d9975f3264e72cd46e7251ca585.zip
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).
Diffstat (limited to '')
-rw-r--r--src/archive/zip_plugin.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/archive/zip_plugin.c b/src/archive/zip_plugin.c
index 903131a5e..dbd2534fa 100644
--- a/src/archive/zip_plugin.c
+++ b/src/archive/zip_plugin.c
@@ -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));
}