diff options
| author | Joseph Herlant <herlantj@gmail.com> | 2018-04-02 18:20:37 -0700 |
|---|---|---|
| committer | Joseph Herlant <herlantj@gmail.com> | 2018-04-02 18:20:37 -0700 |
| commit | ab945bdc1a75f8d6568b7a00a46698de8427878e (patch) | |
| tree | 25fd5b0f90f4b5a651d6b053dcdf01f6b17da43e /navit/maptool/misc.c | |
| parent | e6a71fd6770c36560cb9d8451ae36cc3c0018ba3 (diff) | |
| download | navit-ab945bdc1a75f8d6568b7a00a46698de8427878e.tar.gz | |
maptool: migrate malloc to g_malloc
Diffstat (limited to 'navit/maptool/misc.c')
| -rw-r--r-- | navit/maptool/misc.c | 3 |
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) { |
