mirror of
https://github.com/opnsense/src.git
synced 2026-05-04 17:05:14 -04:00
Fix segfault introduced in previous commit (when adding local packages).
This commit is contained in:
parent
3754c38b40
commit
9ad4f43281
1 changed files with 3 additions and 2 deletions
|
|
@ -75,7 +75,7 @@ main(int argc, char **argv)
|
|||
{
|
||||
int ch, error;
|
||||
char **start;
|
||||
char *cp, *packagesite, *remotepkg = NULL, *ptr;
|
||||
char *cp, *packagesite = NULL, *remotepkg = NULL, *ptr;
|
||||
static char temppackageroot[MAXPATHLEN];
|
||||
|
||||
start = argv;
|
||||
|
|
@ -189,7 +189,8 @@ main(int argc, char **argv)
|
|||
}
|
||||
}
|
||||
}
|
||||
packagesite[0] = '\0';
|
||||
if (packagesite != NULL)
|
||||
packagesite[0] = '\0';
|
||||
}
|
||||
}
|
||||
/* If no packages, yelp */
|
||||
|
|
|
|||
Loading…
Reference in a new issue