Commit 1bc61c04 by Richard Kenner

(xstrdup): Renamed from strdup.

(check_protection): Call xstrdup, not strdup.

From-SVN: r7457
parent 3d5570cb
......@@ -447,7 +447,7 @@ write_rbrac ()
}
char *
strdup (str)
xstrdup (str)
char *str;
{
char *copy = (char *) xmalloc (strlen (str) + 1);
......@@ -577,7 +577,7 @@ check_protection (ifndef_line, endif_line)
c = inf_scan_ident (&buf, inf_skip_spaces (c));
if (SSTRING_LENGTH (&buf) == 0 || c == EOF)
return 0;
protect_name = strdup (buf.base);
protect_name = xstrdup (buf.base);
INF_UNGET (c);
c = inf_read_upto (&buf, '\n');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment