deleting a tag by setting the value to NULL. This
caused a failed device verification to loop forever in
blkid_verify_devname().
2003-03-01 Theodore Ts'o <tytso@mit.edu>
+ * tag.c (blkid_set_tag): Fix bug; don't return an error when
+ deleting a tag by setting the value to NULL. This
+ caused a failed device verification to loop forever in
+ blkid_verify_devname().
+
* resolve.c (main): Update debugging test program so that it
compiles with the latest blkid API changes.
if (!dev || !name)
return -BLKID_ERR_PARAM;
- if (!(val = blkid_strndup(value, vlength)))
+ if (!(val = blkid_strndup(value, vlength)) && value)
return -BLKID_ERR_MEM;
t = blkid_find_tag_dev(dev, name);
if (!value) {