if (pmd.num_matches == 0)
ret = -E_NO_MATCH;
else {
- para_printf(&aca->pbout, "removed %d blob(s)\n",
+ para_printf(&aca->pbout, "removed %u blob(s)\n",
pmd.num_matches);
ret = afs_event(BLOB_REMOVE, NULL, table);
}
struct osl_object obj = {.data = &id, .size = sizeof(id)};
int ret;
- *name = NULL;
+ if (name)
+ *name = NULL;
if (!id)
return 1;
ret = osl(osl_get_row(table, BLOBCOL_ID, &obj, &row));
ret = osl(osl_get_object(table, row, BLOBCOL_NAME, &obj));
if (ret < 0)
return ret;
- *name = (char *)obj.data;
+ if (*(char *)obj.data == '\0')
+ return -E_DUMMY_ROW;
+ if (name)
+ *name = (char *)obj.data;
return 1;
}