projects
/
cparser
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bc3b981
)
Fixed uninitialized empty array descriptor
author
Moritz Kroll
<Moritz.Kroll@gmx.de>
Thu, 12 Jun 2008 20:27:15 +0000
(20:27 +0000)
committer
Moritz Kroll
<Moritz.Kroll@gmx.de>
Thu, 12 Jun 2008 20:27:15 +0000
(20:27 +0000)
[r20082]
adt/array.c
patch
|
blob
|
history
diff --git
a/adt/array.c
b/adt/array.c
index
c412cbb
..
0ab29f2
100644
(file)
--- a/
adt/array.c
+++ b/
adt/array.c
@@
-49,9
+49,13
@@
#endif
/**
- * An empty dynamic array
+ * An empty dynamic array
descriptor.
*/
-_arr_descr arr_mt_descr;
+_arr_descr arr_mt_descr
+#ifndef NDEBUG
+ = { ARR_D_MAGIC, 0, {0}, 0, {{{0}}} }
+#endif
+;
/**
* Creates a dynamic array on a obstack.