summaryrefslogtreecommitdiff
path: root/pkgtools/pkg_install
diff options
context:
space:
mode:
authorwiz <wiz@pkgsrc.org>2006-04-05 18:17:08 +0000
committerwiz <wiz@pkgsrc.org>2006-04-05 18:17:08 +0000
commitcc332cafadff6dcd80795e6fd87ac7adc9bc2101 (patch)
treeb208edc6526a8b876a64710888236cdcfb7f1325 /pkgtools/pkg_install
parent8a604b6ad5bb3b7e9581569a6333eadf9955c4a2 (diff)
downloadpkgsrc-cc332cafadff6dcd80795e6fd87ac7adc9bc2101.tar.gz
Sync with src/usr.sbin v1.62:
When recognizing a broken package version/name, make sure to error out really, don't just print a warning and the run into further problems. Coverity CID 2739.
Diffstat (limited to 'pkgtools/pkg_install')
-rw-r--r--pkgtools/pkg_install/files/lib/str.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/pkgtools/pkg_install/files/lib/str.c b/pkgtools/pkg_install/files/lib/str.c
index 2ad1c85cda1..1a0ac8338d8 100644
--- a/pkgtools/pkg_install/files/lib/str.c
+++ b/pkgtools/pkg_install/files/lib/str.c
@@ -1,4 +1,4 @@
-/* $NetBSD: str.c,v 1.17 2006/04/04 06:36:12 wiz Exp $ */
+/* $NetBSD: str.c,v 1.18 2006/04/05 18:17:08 wiz Exp $ */
#if HAVE_CONFIG_H
#include "config.h"
@@ -11,7 +11,7 @@
#if 0
static const char *rcsid = "Id: str.c,v 1.5 1997/10/08 07:48:21 charnier Exp";
#else
-__RCSID("$NetBSD: str.c,v 1.17 2006/04/04 06:36:12 wiz Exp $");
+__RCSID("$NetBSD: str.c,v 1.18 2006/04/05 18:17:08 wiz Exp $");
#endif
#endif
@@ -315,6 +315,7 @@ findbestmatchingname_fn(const char *found, void *vp)
fprintf(stderr,
"'%s' has no usable package(version)\n",
best);
+ found_version = NULL; /* error out cheaply */
}
}