mirror of
https://github.com/simh/simh.git
synced 2026-05-05 23:34:21 +00:00
SCP: Fix uninitialized variable reference
This commit is contained in:
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)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user