diff options
author | Nikias Bassen | 2009-04-06 18:56:14 +0200 |
---|---|---|
committer | Jonathan Beck | 2009-04-06 18:56:14 +0200 |
commit | 24823e83c7881a85c3d4cb768afc655a7f00e0a6 (patch) | |
tree | d81d8688bcca48c1a665b1750ac9340c5660077d /src | |
parent | dbfbb78dbd74ac6cb74fc1551de589f1855bb4cb (diff) | |
download | libplist-24823e83c7881a85c3d4cb768afc655a7f00e0a6.tar.gz libplist-24823e83c7881a85c3d4cb768afc655a7f00e0a6.tar.bz2 |
Fix uninitialized buffer.
Diffstat (limited to 'src')
-rw-r--r-- | src/plist.c | 1 |
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: |