summaryrefslogtreecommitdiffstats
path: root/editors/beaver/files/patch-src::conf.c
blob: e1e5e3ed5b97e8f0daf722acbb712b530ee13f8d (plain)
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
--- src/conf.c.orig	Tue Mar 15 02:40:04 2004
+++ src/conf.c	Tue Mar 15 02:40:07 2004
@@ -183,6 +183,7 @@
   t_conf	conf;
   gint		ret_val;
 
+  bzero( &conf, sizeof(conf) );
   if (get_conf(key, &conf))
     {
       free_conf(&conf);
@@ -198,6 +199,7 @@
   t_conf	conf;
   gint		ret_val;
 
+  bzero( &conf, sizeof(conf) );
   if (get_conf(key, &conf))
     {
       free_conf(&conf);
@@ -213,6 +215,7 @@
   t_conf	conf;
   gboolean	ret_val;
 
+  bzero( &conf, sizeof(conf) );
   if (get_conf(key, &conf))
     {
       free_conf(&conf);
@@ -231,6 +234,7 @@
   t_conf	conf;
   gboolean	ret_val;
 
+  bzero( &conf, sizeof(conf) );
   if (get_conf(key, &conf))
     {
       free_conf(&conf);
@@ -249,6 +253,7 @@
   t_conf	conf;
   gchar		*ret_val;
 
+  bzero( &conf, sizeof(conf) );
   if (get_conf(key, &conf))
     {
       free_conf(&conf);
@@ -266,6 +271,7 @@
   t_conf	conf;
   gchar		*ret_val;
 
+  bzero( &conf, sizeof(conf) );
   if (get_conf(key, &conf))
     {
       free_conf(&conf);
@@ -386,6 +392,7 @@
 {
   t_conf	conf;
 
+  bzero( &conf, sizeof(conf) );
   conf.line = g_strdup_printf("%d", value);
   if (set_conf(key, &conf))
     {
@@ -400,6 +407,7 @@
 {
   t_conf	conf;
 
+  bzero( &conf, sizeof(conf) );
   if (value)
     conf.line = g_strdup("TRUE");
   else
@@ -417,6 +425,7 @@
 {
   t_conf	conf;
 
+  bzero( &conf, sizeof(conf) );
   conf.line = g_strdup(value);
   if (set_conf(key, &conf))
     {
OpenPOWER on IntegriCloud