diff mbox series

[hurd,commited] hurd: fix build

Message ID 20180318194954.12862-1-samuel.thibault@ens-lyon.org
State New
Headers show
Series [hurd,commited] hurd: fix build | expand

Commit Message

Samuel Thibault March 18, 2018, 7:49 p.m. UTC
* sysdeps/mach/hurd/i386/init-first.c: Compare d->phdr with 0 instead of
NULL.
---
 sysdeps/mach/hurd/i386/init-first.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/sysdeps/mach/hurd/i386/init-first.c b/sysdeps/mach/hurd/i386/init-first.c
index 226de02a99..e272e329ad 100644
--- a/sysdeps/mach/hurd/i386/init-first.c
+++ b/sysdeps/mach/hurd/i386/init-first.c
@@ -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),