(scm_c_issue_deprecation_warning): Use malloc instead of scm_malloc.
authorMarius Vollmer <mvo@zagadka.de>
Thu, 10 Mar 2005 18:05:25 +0000 (18:05 +0000)
committerMarius Vollmer <mvo@zagadka.de>
Thu, 10 Mar 2005 18:05:25 +0000 (18:05 +0000)
The latter can not be used during GC.

libguile/deprecation.c

index de643c2..18dfe0a 100644 (file)
@@ -67,7 +67,7 @@ scm_c_issue_deprecation_warning (const char *msg)
          scm_newline (scm_current_error_port ());
        }
       msg = strdup (msg);
-      iw = scm_malloc (sizeof (struct issued_warning));
+      iw = malloc (sizeof (struct issued_warning));
       if (msg == NULL || iw == NULL)
        return;
       iw->message = msg;