OSDN Git Service

initialize tls_tpnt to NULL on all archs
authorPeter S. Mazinger <ps.m@gmx.net>
Sat, 26 Feb 2011 18:09:46 +0000 (19:09 +0100)
committerPeter S. Mazinger <ps.m@gmx.net>
Thu, 3 Mar 2011 17:22:48 +0000 (18:22 +0100)
Initialize tls_tpnt to NULL on all archs instead of 0.

Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
ldso/ldso/i386/elfinterp.c
ldso/ldso/sparc/elfinterp.c
ldso/ldso/x86_64/elfinterp.c

index 0017c23..5fb2883 100644 (file)
@@ -162,7 +162,7 @@ _dl_do_reloc(struct elf_resolve *tpnt, struct dyn_elf *scope,
        int reloc_type;
        int symtab_index;
        char *symname;
-       struct elf_resolve *tls_tpnt = 0;
+       struct elf_resolve *tls_tpnt = NULL;
        unsigned long *reloc_addr;
        unsigned long symbol_addr;
 #if defined (__SUPPORT_LD_DEBUG__)
index 443f65b..c684378 100644 (file)
@@ -170,7 +170,7 @@ _dl_do_reloc(struct elf_resolve *tpnt, struct dyn_elf *scope,
        int reloc_type;
        int symtab_index;
        char *symname;
-       struct elf_resolve *tls_tpnt = 0;
+       struct elf_resolve *tls_tpnt = NULL;
        struct symbol_ref sym_ref;
        ElfW(Addr) *reloc_addr;
        ElfW(Addr) symbol_addr;
index 15d7733..27b1a15 100644 (file)
@@ -157,7 +157,7 @@ _dl_do_reloc(struct elf_resolve *tpnt, struct dyn_elf *scope,
        int reloc_type;
        int symtab_index;
        char *symname;
-       struct elf_resolve *tls_tpnt = 0;
+       struct elf_resolve *tls_tpnt = NULL;
        struct symbol_ref sym_ref;
        ElfW(Addr) *reloc_addr;
        ElfW(Addr) symbol_addr;