Huidae Cho пре 4 година
родитељ
комит
5a2b8ea0be
1 измењених фајлова са 1 додато и 3 уклоњено
  1. 1 3
      display/d.mon/start.c

+ 1 - 3
display/d.mon/start.c

@@ -47,11 +47,9 @@ char *start(const char *name, const char *output, int width, int height, int upd
                 D_setup_unity(0);
                 D_setup_unity(0);
                 D_erase("white");
                 D_erase("white");
             }
             }
-            else {
-                D_close_driver();
+            else
                 G_fatal_error(_("option <%s>: <%s> exists. To overwrite, use the --overwrite flag"),
                 G_fatal_error(_("option <%s>: <%s> exists. To overwrite, use the --overwrite flag"),
                               "output", output_name);
                               "output", output_name);
-            }
         }
         }
         D_close_driver(); /* must be called after check because this
         D_close_driver(); /* must be called after check because this
                            * function produces default map file */
                            * function produces default map file */