From 281462802f7be87415c5b11a275af5b0e77f66ad Mon Sep 17 00:00:00 2001 From: Thomas Schmitt Date: Sun, 20 Jun 2010 15:41:06 +0200 Subject: [PATCH] Reacted on harmless compiler warnings about allegedly uninitialized variables --- libisofs/ecma119_tree.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libisofs/ecma119_tree.c b/libisofs/ecma119_tree.c index eb1fb17..1723cf6 100644 --- a/libisofs/ecma119_tree.c +++ b/libisofs/ecma119_tree.c @@ -314,7 +314,9 @@ int create_tree(Ecma119Image *image, IsoNode *iso, Ecma119Node **tree, } } - if (!hidden) { + if (hidden) { + max_path= pathlen; + } else { ret = get_iso_name(image, iso, &iso_name); if (ret < 0) { iso_name = NULL; /* invalid, do not free */ @@ -405,6 +407,7 @@ int create_tree(Ecma119Image *image, IsoNode *iso, Ecma119Node **tree, goto ex; } } + ret = ISO_SUCCESS; pos = dir->children; while (pos) { int cret;