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

should happen with this change.
This commit is contained in:
delphij 2006-07-26 08:58:00 +00:00
parent dfd296d48e
commit 9328356917
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);