From 4b0f175a8991f4447ec7e64aec9703ac1b050c01 Mon Sep 17 00:00:00 2001 From: Thomas Schmitt Date: Mon, 8 Feb 2010 10:55:13 +0100 Subject: [PATCH] Reacted on compiler warnings from gzpLinux on kernel 2.6 --- libisofs/filters/zisofs.c | 3 +++ libisofs/node.c | 1 + libisofs/tree.c | 2 +- 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/libisofs/filters/zisofs.c b/libisofs/filters/zisofs.c index 26592e3..f9e9c11 100644 --- a/libisofs/filters/zisofs.c +++ b/libisofs/filters/zisofs.c @@ -913,6 +913,8 @@ int ziso_filter_get_uncompressor(FilterContext *filter, IsoStream *original, } +#ifdef Libisofs_with_zliB + /* Produce a parameter object suitable for iso_file_add_filter(). * It may be disposed by free() after all those calls are made. * @@ -939,6 +941,7 @@ int ziso_create_context(FilterContext **filter, int flag) return ISO_SUCCESS; } +#endif Libisofs_with_zliB /* * @param flag bit0= if_block_reduction rather than if_reduction diff --git a/libisofs/node.c b/libisofs/node.c index 996b1a0..7149398 100644 --- a/libisofs/node.c +++ b/libisofs/node.c @@ -208,6 +208,7 @@ int iso_node_get_xinfo(IsoNode *node, iso_node_xinfo_func proc, void **data) return ISO_NULL_POINTER; } + *data = NULL; pos = node->xinfo; while (pos != NULL) { if (pos->process == proc) { diff --git a/libisofs/tree.c b/libisofs/tree.c index 3dac930..ea962d0 100644 --- a/libisofs/tree.c +++ b/libisofs/tree.c @@ -921,7 +921,7 @@ int iso_tree_path_to_node(IsoImage *image, const char *path, IsoNode **node) int result; IsoNode *n; IsoDir *dir; - char *ptr, *brk_info, *component; + char *ptr, *brk_info = NULL, *component; if (image == NULL || path == NULL) { return ISO_NULL_POINTER;