1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-04-30 03:40:34 +02:00

(scm_c_issue_deprecation_warning): Use malloc instead of scm_malloc.

The latter can not be used during GC.
This commit is contained in:
Marius Vollmer 2005-03-10 18:05:25 +00:00
parent 68ec32312f
commit fc240b46e9

View file

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