From: Gabriel Ebner Date: Sun, 4 May 2008 11:44:36 +0000 (+0000) Subject: api06: 013_populate_node_tags_and_remove_helper: Initialize memory. X-Git-Tag: live~8563^2~367 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/e0e5423fb9faf5500626ce7ec2f8f823c4b484f1 api06: 013_populate_node_tags_and_remove_helper: Initialize memory. --- diff --git a/db/migrate/013_populate_node_tags_and_remove_helper.c b/db/migrate/013_populate_node_tags_and_remove_helper.c index 8150e4da8..fd000343f 100644 --- a/db/migrate/013_populate_node_tags_and_remove_helper.c +++ b/db/migrate/013_populate_node_tags_and_remove_helper.c @@ -199,6 +199,7 @@ int main(int argc, char **argv) { d->version_size = 1 + select_size(d->mysql, "SELECT max(id) FROM current_nodes"); d->version = malloc(sizeof(uint32_t) * d->version_size); + memset(d->version, 0, sizeof(uint32_t) * d->version_size); prefix_len = strlen(argv[7]); tempfn = (char *) malloc(prefix_len + 32);