diff options
author | David Sterba <dsterba@suse.com> | 2016-09-29 15:12:35 +0200 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2016-10-03 15:07:23 +0200 |
commit | 85d608f7ecec2317456059199644e9f940a38e5c (patch) | |
tree | 764baf5d281194a3238f92849bb4481f68621aee /btrfs-list.c | |
parent | 9fcdf8f8945bfddb7e1155bc9da68aed33e4737c (diff) |
btrfs-progs: constify string arguments where appropriate
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'btrfs-list.c')
-rw-r--r-- | btrfs-list.c | 3 |
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); |