summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2009-04-06 18:56:14 +0200
committerGravatar Jonathan Beck2009-04-06 18:56:14 +0200
commit24823e83c7881a85c3d4cb768afc655a7f00e0a6 (patch)
treed81d8688bcca48c1a665b1750ac9340c5660077d /src
parentdbfbb78dbd74ac6cb74fc1551de589f1855bb4cb (diff)
downloadlibplist-24823e83c7881a85c3d4cb768afc655a7f00e0a6.tar.gz
libplist-24823e83c7881a85c3d4cb768afc655a7f00e0a6.tar.bz2
Fix uninitialized buffer.
Diffstat (limited to 'src')
-rw-r--r--src/plist.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/plist.c b/src/plist.c
index bdec7a8..169ed07 100644
--- a/src/plist.c
+++ b/src/plist.c
@@ -121,6 +121,7 @@ static plist_t plist_add_sub_element(plist_t node, plist_type type, const void *
data->length = items_written;
break;
case PLIST_DATA:
+ data->buff = (uint8_t*)malloc(length);
memcpy(data->buff, value, length);
break;
case PLIST_DATE: