mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-04-30 11:50:28 +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:
parent
68ec32312f
commit
fc240b46e9
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue