Make sure that the sc pointer gets initialized. No functional change

should happen with this change.
This commit is contained in:
Xin LI 2006-07-26 08:58:00 +00:00
parent 11eb328ec5
commit 1aeafe6572
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=160701
2 changed files with 2 additions and 2 deletions

View File

@ -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);

View File

@ -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);