1
0
mirror of https://github.com/PDP-10/klh10.git synced 2026-01-11 23:52:54 +00:00

Fix a NULL argument to fprintf()

which was detected by gcc.
cp is NULL in the call because of the if() it is inside.
This commit is contained in:
Olaf Seibert 2021-08-15 14:56:13 +02:00 committed by Rhialto The M
parent 2b7daffb80
commit 39104e9cbf

View File

@ -66,7 +66,7 @@ int prm_varset(char **acp,
if (!(cp = strchr(cp, '='))) {
if (ef)
fprintf(ef, "Bad syntax for \"%s\", must be <var>=<value>\n", cp);
fprintf(ef, "Bad syntax for \"%s\", must be <var>=<value>\n", *acp);
return FALSE;
}