aboutsummaryrefslogtreecommitdiff
path: root/unpack
diff options
context:
space:
mode:
Diffstat (limited to 'unpack')
-rw-r--r--unpack/rdsquashfs.h1
-rw-r--r--unpack/restore_fstree.c2
2 files changed, 2 insertions, 1 deletions
diff --git a/unpack/rdsquashfs.h b/unpack/rdsquashfs.h
index 8866679..56250fd 100644
--- a/unpack/rdsquashfs.h
+++ b/unpack/rdsquashfs.h
@@ -21,6 +21,7 @@
#include <stdlib.h>
#include <unistd.h>
#include <getopt.h>
+#include <assert.h>
#include <ctype.h>
#include <errno.h>
#include <fcntl.h>
diff --git a/unpack/restore_fstree.c b/unpack/restore_fstree.c
index 5027625..a868062 100644
--- a/unpack/restore_fstree.c
+++ b/unpack/restore_fstree.c
@@ -77,7 +77,7 @@ static int create_node(tree_node_t *n, int flags)
return -1;
}
- canonicalize_name(n->data.file->input_file);
+ assert(canonicalize_name(n->data.file->input_file) == 0);
break;
default:
break;