changeset 2319:bdca83348300

Cleanup.
author Matti Hamalainen <ccr@tnsp.org>
date Thu, 18 Feb 2021 11:30:17 +0200
parents 7424be5d9d3c
children 2ec090f3ce17
files mkcitymap.c
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/mkcitymap.c	Mon Feb 01 23:32:27 2021 +0200
+++ b/mkcitymap.c	Thu Feb 18 11:30:17 2021 +0200
@@ -405,8 +405,7 @@
 
 
     // Open mapfile
-    map = mapBlockParseFile(optMapFilename, FALSE);
-    if (map == NULL)
+    if ((map = mapBlockParseFile(optMapFilename, FALSE)) == NULL)
     {
         THERR("Error parsing/opening mapfile '%s'.\n",
             optMapFilename);