diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2011-04-08 02:43:29 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2011-04-08 02:43:29 +0000 |
commit | 109ecddaf8d7034d47b9eb01dce008dc83101ee1 (patch) | |
tree | f69f80af9d541fab55d6457b385f717df80799bf /libexec/ld.so/alpha/rtld_machine.c | |
parent | 1415b9bb4135d562c360e4f1ce6b2a852bce029e (diff) |
Do not use NULL in integer comparison.
Diffstat (limited to 'libexec/ld.so/alpha/rtld_machine.c')
-rw-r--r-- | libexec/ld.so/alpha/rtld_machine.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libexec/ld.so/alpha/rtld_machine.c b/libexec/ld.so/alpha/rtld_machine.c index 84a231c629c..6a4c0d1ffa2 100644 --- a/libexec/ld.so/alpha/rtld_machine.c +++ b/libexec/ld.so/alpha/rtld_machine.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rtld_machine.c,v 1.45 2011/04/06 11:36:25 miod Exp $ */ +/* $OpenBSD: rtld_machine.c,v 1.46 2011/04/08 02:43:28 deraadt Exp $ */ /* * Copyright (c) 1999 Dale Rahn @@ -270,7 +270,7 @@ _dl_md_reloc_got(elf_object_t *object, int lazy) object->got_size += object->got_addr - object->got_start; object->got_size = ELF_ROUND(object->got_size, _dl_pagesz); } - if (plt_addr == NULL) + if (plt_addr == 0) object->plt_start = 0; else { object->plt_start = ELF_TRUNC(plt_addr, _dl_pagesz); |