A small bugfix for rework 11


To ng-spice@ieee.ing.uniroma1.it
From Manfred Metzger <ManfredMetzger@gmx.de>
Date Mon, 29 May 2000 20:53:19 +0200
Delivered-To mailing list ng-spice@ieee.ing.uniroma1.it
Mailing-List contact ng-spice-help@ieee.ing.uniroma1.it; run by ezmlm
Reply-To ng-spice@ieee.ing.uniroma1.it
Sender root

Hi!

This patch fixes a bug in the function INPerror().
Since SPerror() returns a pointer to a constant string,
this pointer should not be free()'d.

Manni


--- inperror.c.orig Sun May 28 09:46:57 2000
+++ inperror.c Mon May 29 20:43:55 2000
@@ -30,7 +30,6 @@
     else
  sprintf(ebuf, "%s\n", val);

-    FREE(val);
     val = MALLOC(strlen(ebuf) + 1);
     if (val)
  strcpy(val, ebuf);




Partial thread listing: