api06: 013_populate_node_tags_and_remove_helper: Initialize memory.
authorGabriel Ebner <gabriel@svn.openstreetmap.org>
Sun, 4 May 2008 11:44:36 +0000 (11:44 +0000)
committerGabriel Ebner <gabriel@svn.openstreetmap.org>
Sun, 4 May 2008 11:44:36 +0000 (11:44 +0000)
db/migrate/013_populate_node_tags_and_remove_helper.c

index 8150e4d..fd00034 100644 (file)
@@ -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);