Fixed mdb-prop when there is no properties at all

This was printing "Unknown format"
This commit is contained in:
Nirgal Vourgère 2012-07-07 23:00:22 +02:00
parent b0fb6a4167
commit a5573ab6d1

View File

@ -81,7 +81,10 @@ main(int argc, char **argv)
MdbColumn *col = g_ptr_array_index(table->columns, col_num-1);
size_t size;
void *kkd = mdb_ole_read_full(mdb, col, &size);
dump_kkd(mdb, kkd, size);
if (size)
dump_kkd(mdb, kkd, size);
else
printf("No properties.\n");
free(kkd);
}