Fix segfault introduced in previous commit (when adding local packages).
This commit is contained in:
parent
3754c38b40
commit
9ad4f43281
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=83573
@ -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 New Issue
Block a user