summaryrefslogtreecommitdiff
path: root/bin/sqfsdiff/util.c
diff options
context:
space:
mode:
Diffstat (limited to 'bin/sqfsdiff/util.c')
-rw-r--r--bin/sqfsdiff/util.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/bin/sqfsdiff/util.c b/bin/sqfsdiff/util.c
index ab6fa59..a11770f 100644
--- a/bin/sqfsdiff/util.c
+++ b/bin/sqfsdiff/util.c
@@ -8,10 +8,12 @@
char *node_path(const sqfs_tree_node_t *n)
{
- char *path = sqfs_tree_node_get_path(n);
+ char *path;
+ int ret;
- if (path == NULL) {
- perror("get path");
+ ret = sqfs_tree_node_get_path(n, &path);
+ if (ret != 0) {
+ sqfs_perror(NULL, "get path", ret);
return NULL;
}