Browse Source

initialize tls_tpnt to NULL on all archs

Initialize tls_tpnt to NULL on all archs instead of 0.

Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Peter S. Mazinger 14 years ago
parent
commit
60d28a6cda
3 changed files with 3 additions and 3 deletions
  1. 1 1
      ldso/ldso/i386/elfinterp.c
  2. 1 1
      ldso/ldso/sparc/elfinterp.c
  3. 1 1
      ldso/ldso/x86_64/elfinterp.c

+ 1 - 1
ldso/ldso/i386/elfinterp.c

@@ -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__)

+ 1 - 1
ldso/ldso/sparc/elfinterp.c

@@ -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;

+ 1 - 1
ldso/ldso/x86_64/elfinterp.c

@@ -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;