Browse Source

call abort() only when NDEBUG is not defined

ceriel 30 years ago
parent
commit
af0e9371e9
1 changed files with 2 additions and 0 deletions
  1. 2 0
      util/opt/util.c

+ 2 - 0
util/opt/util.c

@@ -29,7 +29,9 @@ error(s,a) char *s,*a; {
 	fprintf(stderr,": ");
 	fprintf(stderr,s,a);
 	fprintf(stderr,"\n");
+#ifndef NDEBUG
 	abort();
+#endif
 	exit(-1);
 }