summaryrefslogtreecommitdiff
path: root/btrfs-list.c
diff options
context:
space:
mode:
Diffstat (limited to 'btrfs-list.c')
-rw-r--r--btrfs-list.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/btrfs-list.c b/btrfs-list.c
index 563845dc..b5d4458b 100644
--- a/btrfs-list.c
+++ b/btrfs-list.c
@@ -808,9 +808,10 @@ static char *__ino_resolve(int fd, u64 dirid)
* simple string builder, returning a new string with both
* dirid and name
*/
-static char *build_name(char *dirid, char *name)
+static char *build_name(const char *dirid, const char *name)
{
char *full;
+
if (!dirid)
return strdup(name);