1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-15 15:06:42 +00:00

MF22: check for null pointer.

This commit is contained in:
Jordan K. Hubbard 1998-07-04 14:13:01 +00:00
parent 357f172839
commit 3dc0dc887a
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=37378

View File

@ -1,6 +1,6 @@
#ifndef lint
static const char rcsid[] =
"$Id: extract.c,v 1.18 1997/10/24 08:32:06 max Exp $";
"$Id: extract.c,v 1.19 1998/01/21 00:12:56 imp Exp $";
#endif
/*
@ -157,7 +157,11 @@ extract_plist(char *home, Package *pkg)
else {
/* rename failed, try copying with a big tar command */
if (last_chdir != Directory) {
PUSHOUT(last_chdir);
if (last_chdir == NULL) {
PUSHOUT(Directory);
} else {
PUSHOUT(last_chdir);
}
last_chdir = Directory;
}
else if (p->name[0] == '/' || TOOBIG(p->name)) {