diff options
Diffstat (limited to 'libs/libcurl/src/nwlib.c')
-rw-r--r-- | libs/libcurl/src/nwlib.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/libs/libcurl/src/nwlib.c b/libs/libcurl/src/nwlib.c index 290cbe31f4..215d933acb 100644 --- a/libs/libcurl/src/nwlib.c +++ b/libs/libcurl/src/nwlib.c @@ -186,11 +186,9 @@ int GetOrSetUpData(int id, libdata_t **appData, app_data = (libdata_t *) get_app_data(id); if(!app_data) { - app_data = malloc(sizeof(libdata_t)); + app_data = calloc(1, sizeof(libdata_t)); if(app_data) { - memset(app_data, 0, sizeof(libdata_t)); - app_data->tenbytes = malloc(10); app_data->lock = NXMutexAlloc(0, 0, &liblock); |