n->path = colstring(st, 4);
n->file = colstring(st, 5);
n->ack = sqlite3_column_int(st, 6);
- n->ts = sqlite3_column_int(st, 1);
+ n->ts = colstring(st, 1);
n->id = sqlite3_column_int64(st, 0);
id = n->id;
break;
free(n->pkgid);
free(n->path);
free(n->file);
+ free(n->ts);
+ n->note = n->ts = n->pkgid = n->path = n->file = 0;
}
int zpm_notes_available(struct zpm *zpm, int flags) {