X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=attribute.c;h=671ca056d4c0f65d501443a96e45a40fa780cd69;hp=694a962bcd27e53788cd64636b3b165396973e6a;hb=b7bfffa86a33626ebb8e8a5fcba51568492c3808;hpb=f1aec8cff93dcd636dffb137cd7bdbd5f3c3dcff diff --git a/attribute.c b/attribute.c index 694a962b..671ca056 100644 --- a/attribute.c +++ b/attribute.c @@ -356,14 +356,15 @@ static int remove_attribute(struct osl_table *table, struct osl_row *row, const char *name, void *data) { struct remove_attribute_action_data *raad = data; - int ret = osl_del_row(table, row); unsigned char bitnum; + int ret; + ret = get_attribute_bitnum_by_name(name, &bitnum); if (ret < 0) { para_printf(&raad->pb, "%s: %s\n", name, PARA_STRERROR(-ret)); return 1; } - ret = get_attribute_bitnum_by_name(name, &bitnum); + ret = osl_del_row(table, row); if (ret < 0) { para_printf(&raad->pb, "%s: %s\n", name, PARA_STRERROR(-ret)); return 1;