Make sure that the sc pointer gets initialized. No functional change
should happen with this change.
This commit is contained in:
parent
11eb328ec5
commit
1aeafe6572
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=160701
@ -118,7 +118,7 @@ i386_syscall_entry(struct trussinfo *trussinfo, int nargs) {
|
||||
int syscall_num;
|
||||
int i;
|
||||
unsigned int parm_offset;
|
||||
struct syscall *sc;
|
||||
struct syscall *sc = NULL;
|
||||
|
||||
if (fd == -1 || trussinfo->pid != cpid) {
|
||||
sprintf(buf, "/proc/%d/regs", trussinfo->pid);
|
||||
|
@ -118,7 +118,7 @@ i386_syscall_entry(struct trussinfo *trussinfo, int nargs) {
|
||||
int syscall_num;
|
||||
int i;
|
||||
unsigned int parm_offset;
|
||||
struct syscall *sc;
|
||||
struct syscall *sc = NULL;
|
||||
|
||||
if (fd == -1 || trussinfo->pid != cpid) {
|
||||
sprintf(buf, "/proc/%d/regs", trussinfo->pid);
|
||||
|
Loading…
Reference in New Issue
Block a user