cmd: Fix a compiler warning.
This commit is contained in:
parent
5770f3e30d
commit
7c1418ae2c
|
@ -1480,7 +1480,7 @@ static char *WCMD_expand_envvar(char *start) {
|
||||||
/* ~ is substring manipulation */
|
/* ~ is substring manipulation */
|
||||||
if (savedchar == '~') {
|
if (savedchar == '~') {
|
||||||
|
|
||||||
int substrposition, substrlength;
|
int substrposition, substrlength = 0;
|
||||||
char *commapos = strchr(colonpos+2, ',');
|
char *commapos = strchr(colonpos+2, ',');
|
||||||
char *startCopy;
|
char *startCopy;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue