summaryrefslogtreecommitdiff
path: root/navit/maptool/misc.c
diff options
context:
space:
mode:
authorJoseph Herlant <herlantj@gmail.com>2018-04-02 18:20:37 -0700
committerJoseph Herlant <herlantj@gmail.com>2018-04-02 18:20:37 -0700
commitab945bdc1a75f8d6568b7a00a46698de8427878e (patch)
tree25fd5b0f90f4b5a651d6b053dcdf01f6b17da43e /navit/maptool/misc.c
parente6a71fd6770c36560cb9d8451ae36cc3c0018ba3 (diff)
downloadnavit-ab945bdc1a75f8d6568b7a00a46698de8427878e.tar.gz
maptool: migrate malloc to g_malloc
Diffstat (limited to 'navit/maptool/misc.c')
-rw-r--r--navit/maptool/misc.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/navit/maptool/misc.c b/navit/maptool/misc.c
index 90b03d462..53ed24407 100644
--- a/navit/maptool/misc.c
+++ b/navit/maptool/misc.c
@@ -326,8 +326,7 @@ process_slice(FILE **in, FILE **reference, int in_count, int with_range, long lo
struct tile_info info;
int i;
- slice_data=malloc(size);
- assert(slice_data != NULL);
+ slice_data=g_malloc(size);
zip_data=slice_data;
th=tile_head_root;
while (th) {