SCP: Fix uninitialized variable reference
This commit is contained in:
parent
82ea9c59ca
commit
5d7dc4d676
1 changed files with 1 additions and 1 deletions
2
scp.c
2
scp.c
|
@ -3680,7 +3680,7 @@ char *tstr = (char *)malloc (1 + rbuf_len);
|
||||||
strcpy (tstr, rbuf);
|
strcpy (tstr, rbuf);
|
||||||
|
|
||||||
if (*ops == '~') { /* Substring? */
|
if (*ops == '~') { /* Substring? */
|
||||||
int offset, length;
|
int offset, length = rbuf_len;
|
||||||
int o, l;
|
int o, l;
|
||||||
|
|
||||||
switch (sscanf (ops + 1, "%d,%d", &o, &l)) {
|
switch (sscanf (ops + 1, "%d,%d", &o, &l)) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue