Changeset 738 for trunk/zoo-project/zoo-kernel/caching.c
- Timestamp:
- Jul 13, 2015, 3:42:39 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/zoo-project/zoo-kernel/caching.c
r725 r738 303 303 */ 304 304 int loadRemoteFile(maps** m,map** content,HINTERNET* hInternet,char *url){ 305 char* fcontent ;305 char* fcontent = NULL; 306 306 char* cached=isInCache(*m,url); 307 307 char *mimeType=NULL; … … 353 353 354 354 tmpMap->value=(char*)malloc((fsize+1)*sizeof(char)); 355 if(tmpMap->value==NULL )355 if(tmpMap->value==NULL || fcontent == NULL) 356 356 return errorException(*m, _("Unable to allocate memory"), "InternalError",NULL); 357 357 memcpy(tmpMap->value,fcontent,(fsize+1)*sizeof(char));
Note: See TracChangeset
for help on using the changeset viewer.