]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
(dl_main): Correct tests in preloading interpreting lines.
authorUlrich Drepper <drepper@redhat.com>
Mon, 13 Jul 1998 14:17:00 +0000 (14:17 +0000)
committerUlrich Drepper <drepper@redhat.com>
Mon, 13 Jul 1998 14:17:00 +0000 (14:17 +0000)
elf/rtld.c

index b5fc84286bcac9b9349f4a9b00f0ef57caa60384..dc63dd5a8c8586dc6c83a78f3262c01d8da72f1a 100644 (file)
@@ -369,7 +369,7 @@ of this helper program; chances are you did not intend to run this program.\n",
       char *list = strdupa (preloadlist);
       char *p;
       list += strspn (list, " :");
-      while (*list && (p = strsep (&list, " :")) != NULL)
+      while (list && *list && (p = strsep (&list, " :")) != NULL)
        if (! __libc_enable_secure || strchr (p, '/') == NULL)
          {
            struct link_map *new_map = _dl_map_object (l, p, 1, lt_library, 0);
@@ -437,7 +437,7 @@ of this helper program; chances are you did not intend to run this program.\n",
        {
          char *p;
          runp = file + strspn (file, ": \t\n");
-         while (*runp && (p = strsep (&runp, ": \t\n")) != NULL)
+         while (runp && *runp && (p = strsep (&runp, ": \t\n")) != NULL)
            {
              struct link_map *new_map = _dl_map_object (l, p, 1,
                                                         lt_library, 0);