]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
hurd: fix build
authorSamuel Thibault <samuel.thibault@ens-lyon.org>
Sun, 18 Mar 2018 19:49:26 +0000 (20:49 +0100)
committerSamuel Thibault <samuel.thibault@ens-lyon.org>
Sun, 18 Mar 2018 19:49:26 +0000 (20:49 +0100)
* sysdeps/mach/hurd/i386/init-first.c: Compare d->phdr with 0 instead of
NULL.

sysdeps/mach/hurd/i386/init-first.c

index 226de02a99e08f14aa872e17a2a98672de3545df..e272e329ad240a94b85dd8313ea20468881773d5 100644 (file)
@@ -107,7 +107,7 @@ init1 (int argc, char *arg0, ...)
   /* If we are the bootstrap task started by the kernel,
      then after the environment pointers there is no Hurd
      data block; the argument strings start there.  */
-  if ((void *) d == argv[0] || d->phdr == NULL)
+  if ((void *) d == argv[0] || d->phdr == 0)
     {
 #ifndef SHARED
       /* With a new enough linker (binutils-2.23 or better),