summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/common/unionfs.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/common/unionfs.c b/src/common/unionfs.c
index 1a5af0c..30da90e 100644
--- a/src/common/unionfs.c
+++ b/src/common/unionfs.c
@@ -760,6 +760,9 @@ apply_priority(GNode *root_node)
char str[1025];
while (fgets(str, 1024, fp) != 0) {
gchar** tok_str = g_strsplit(str," ",3);
+ if (tok_str[0] == NULL || tok_str[1] == NULL) {
+ continue;
+ }
char *path = tok_str[1];
if (g_debug) {
printf("unionfs::apply_priority(), working on this %s\n",path);