diff options
author | joerg <joerg@pkgsrc.org> | 2009-02-11 23:42:42 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2009-02-11 23:42:42 +0000 |
commit | 52e03c25de476e657ebbbd1e565e22ec1f07cca7 (patch) | |
tree | 231a094f370f8a25c68026ea44fa1ce43b40d824 /pkgtools/pkg_install/files/add | |
parent | 4c7b4881063f2417790e4929185c1f8730e819c5 (diff) | |
download | pkgsrc-52e03c25de476e657ebbbd1e565e22ec1f07cca7.tar.gz |
pkg_install-20090212:
Print the error about missing build information even when the
+BUILD_INFO file is missing instead of segfaulting. The problem is from
PR 30276, a solution in the form of just installing it will not be
implemented.
Diffstat (limited to 'pkgtools/pkg_install/files/add')
-rw-r--r-- | pkgtools/pkg_install/files/add/perform.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pkgtools/pkg_install/files/add/perform.c b/pkgtools/pkg_install/files/add/perform.c index e1adba5b3e5..a7bc936a149 100644 --- a/pkgtools/pkg_install/files/add/perform.c +++ b/pkgtools/pkg_install/files/add/perform.c @@ -1,4 +1,4 @@ -/* $NetBSD: perform.c,v 1.75 2009/02/03 19:47:37 joerg Exp $ */ +/* $NetBSD: perform.c,v 1.76 2009/02/11 23:42:42 joerg Exp $ */ #if HAVE_CONFIG_H #include "config.h" #endif @@ -6,7 +6,7 @@ #if HAVE_SYS_CDEFS_H #include <sys/cdefs.h> #endif -__RCSID("$NetBSD: perform.c,v 1.75 2009/02/03 19:47:37 joerg Exp $"); +__RCSID("$NetBSD: perform.c,v 1.76 2009/02/11 23:42:42 joerg Exp $"); /*- * Copyright (c) 2003 Grant Beattie <grant@NetBSD.org> @@ -458,7 +458,7 @@ read_buildinfo(struct pkg_task *pkg) data = pkg->meta_data.meta_build_info; - for (; *data != '\0'; data = next_line) { + for (; data != NULL && *data != '\0'; data = next_line) { if ((eol = strchr(data, '\n')) == NULL) { eol = data + strlen(data); next_line = eol; |