mirror of
https://github.com/mdbtools/mdbtools.git
synced 2025-09-21 03:57:55 +08:00
Fixed mdb-prop when there is no properties at all
This was printing "Unknown format"
This commit is contained in:
@@ -81,7 +81,10 @@ main(int argc, char **argv)
|
|||||||
MdbColumn *col = g_ptr_array_index(table->columns, col_num-1);
|
MdbColumn *col = g_ptr_array_index(table->columns, col_num-1);
|
||||||
size_t size;
|
size_t size;
|
||||||
void *kkd = mdb_ole_read_full(mdb, col, &size);
|
void *kkd = mdb_ole_read_full(mdb, col, &size);
|
||||||
|
if (size)
|
||||||
dump_kkd(mdb, kkd, size);
|
dump_kkd(mdb, kkd, size);
|
||||||
|
else
|
||||||
|
printf("No properties.\n");
|
||||||
free(kkd);
|
free(kkd);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user