Browse Source

* use initializer list instead memset()

master
Alex 'AdUser' Z 8 years ago
parent
commit
908b05f74b
  1. 4
      src/simdb-tool.c

4
src/simdb-tool.c

@ -126,12 +126,10 @@ int search_similar_byid(simdb_t *db, float maxdiff, int num) {
int db_usage_map(simdb_t *db, int cols) { int db_usage_map(simdb_t *db, int cols) {
char *map = NULL; char *map = NULL;
char *m = NULL; char *m = NULL;
char row[256]; char row[256] = { 0x0 };
int records, pos; int records, pos;
uint8_t rest = 0; uint8_t rest = 0;
memset(row, 0x0, sizeof(char) * 256);
if ((records = simdb_usage_map(db, &map)) == 0) { if ((records = simdb_usage_map(db, &map)) == 0) {
fprintf(stderr, "database usage: can't get database map\n"); fprintf(stderr, "database usage: can't get database map\n");
FREE(map); FREE(map);

Loading…
Cancel
Save