mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-09 17:38:00 +00:00
cmdgen: add const on main() variable 'comment'.
It's a secondary reference to existing data (namely an argv word, if anything at all), and never needs to be written through, so we should mark it const, if nothing else to catch any absent-minded attempts to free it.
This commit is contained in:
parent
e2a047ad8d
commit
93f80836b4
3
cmdgen.c
3
cmdgen.c
@ -222,7 +222,8 @@ int main(int argc, char **argv)
|
||||
enum { PRIVATE, PUBLIC, PUBLICO, FP, OPENSSH_AUTO,
|
||||
OPENSSH_NEW, SSHCOM } outtype = PRIVATE;
|
||||
int bits = -1;
|
||||
char *comment = NULL, *origcomment = NULL;
|
||||
const char *comment = NULL;
|
||||
char *origcomment = NULL;
|
||||
bool change_passphrase = false;
|
||||
bool errs = false, nogo = false;
|
||||
int intype = SSH_KEYTYPE_UNOPENABLE;
|
||||
|
Loading…
Reference in New Issue
Block a user