Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/libexec/ld.elf_so Don't try to preload an empty string.
details: https://anonhg.NetBSD.org/src/rev/42de7595657b
branches: trunk
changeset: 555693:42de7595657b
user: christos <christos%NetBSD.org@localhost>
date: Tue Nov 25 14:36:49 2003 +0000
description:
Don't try to preload an empty string.
diffstat:
libexec/ld.elf_so/load.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (18 lines):
diff -r ebfe5368ed57 -r 42de7595657b libexec/ld.elf_so/load.c
--- a/libexec/ld.elf_so/load.c Tue Nov 25 13:22:38 2003 +0000
+++ b/libexec/ld.elf_so/load.c Tue Nov 25 14:36:49 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: load.c,v 1.26 2003/07/24 10:12:25 skrll Exp $ */
+/* $NetBSD: load.c,v 1.27 2003/11/25 14:36:49 christos Exp $ */
/*
* Copyright 1996 John D. Polstra.
@@ -292,7 +292,7 @@
char *cp, *buf;
int status = 0;
- if (preload_path != NULL) {
+ if (preload_path != NULL && *preload_path != '\0') {
cp = buf = xstrdup(preload_path);
while ((path = strsep(&cp, " :")) != NULL && status == 0) {
if (!_rtld_load_object(xstrdup(path), RTLD_MAIN))
Home |
Main Index |
Thread Index |
Old Index