mirror of git://anongit.mindrot.org/openssh.git
Initial len for the fmt=NULL case.
Patch from jjelen at redhat via bz#2687. (OpenSSH never calls setproctitle with a null format so len is always initialized).
This commit is contained in:
parent
ea9c06e11d
commit
039bf2a817
|
@ -125,7 +125,7 @@ setproctitle(const char *fmt, ...)
|
|||
#if SPT_TYPE != SPT_NONE
|
||||
va_list ap;
|
||||
char buf[1024], ptitle[1024];
|
||||
size_t len;
|
||||
size_t len = 0;
|
||||
int r;
|
||||
extern char *__progname;
|
||||
#if SPT_TYPE == SPT_PSTAT
|
||||
|
|
Loading…
Reference in New Issue