Index: trunk/src/attrib.c =================================================================== --- trunk/src/attrib.c (revision 6342) +++ trunk/src/attrib.c (revision 6343) @@ -44,6 +44,9 @@ { int i; + if ((name == NULL) || (*name == '\0')) + return -1; + /* If we're allowed to replace an existing attribute, see if we can. */ if (replace) {