SCP: Fix uninitialized variable reference

This commit is contained in:
Mark Pizzolato 2018-07-15 07:18:59 -07:00
parent 82ea9c59ca
commit 5d7dc4d676

2
scp.c
View file

@ -3680,7 +3680,7 @@ char *tstr = (char *)malloc (1 + rbuf_len);
strcpy (tstr, rbuf);
if (*ops == '~') { /* Substring? */
int offset, length;
int offset, length = rbuf_len;
int o, l;
switch (sscanf (ops + 1, "%d,%d", &o, &l)) {