summaryrefslogtreecommitdiffstats
path: root/libblkid/src/tag.c
diff options
context:
space:
mode:
Diffstat (limited to 'libblkid/src/tag.c')
-rw-r--r--libblkid/src/tag.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libblkid/src/tag.c b/libblkid/src/tag.c
index a59c0e63a..6fcaa7e5e 100644
--- a/libblkid/src/tag.c
+++ b/libblkid/src/tag.c
@@ -155,7 +155,7 @@ int blkid_set_tag(blkid_dev dev, const char *name,
/* Existing tag not present, add to device */
if (!(t = blkid_new_tag()))
goto errout;
- t->bit_name = name ? strdup(name) : NULL;
+ t->bit_name = strdup(name);
t->bit_val = val;
t->bit_dev = dev;
@@ -170,7 +170,7 @@ int blkid_set_tag(blkid_dev dev, const char *name,
goto errout;
DBG(TAG, ul_debug(" creating new cache tag head %s", name));
- head->bit_name = name ? strdup(name) : NULL;
+ head->bit_name = strdup(name);
if (!head->bit_name)
goto errout;
list_add_tail(&head->bit_tags,