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:
parent
2b7daffb80
commit
39104e9cbf
@ -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;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user