1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
$NetBSD: patch-as,v 1.1 2004/01/05 09:50:47 cube Exp $
--- libltdl/ltdl.c.orig 2001-04-25 06:05:03.000000000 +0200
+++ libltdl/ltdl.c
@@ -1156,6 +1156,7 @@ presym_add_symlist (preloaded)
tmp = LT_DLMALLOC (lt_dlsymlists_t, 1);
if (tmp)
{
+ memset (tmp, 0, 1*sizeof(lt_dlsymlists_t));
tmp->syms = preloaded;
tmp->next = preloaded_symbols;
preloaded_symbols = tmp;
@@ -2023,10 +2024,7 @@ lt_dlopen (filename)
return 0;
}
- handle->info.ref_count = 0;
- handle->depcount = 0;
- handle->deplibs = 0;
- handle->caller_data = 0;
+ memset (handle, 0, 1*sizeof(struct lt_dlhandle_struct));
newhandle = handle;
/* lt_dlclose()ing yourself is very bad! Disallow it. */
@@ -2266,7 +2264,7 @@ lt_dlopen (filename)
goto cleanup;
}
- handle->info.ref_count = 0;
+ memset (handle, 0, 1*sizeof(struct lt_dlhandle_struct));
if (load_deplibs (handle, deplibs) == 0)
{
newhandle = handle;
|