Changeset 478 for trunk/zoo-project/zoo-kernel/service_internal.c
- Timestamp:
- May 27, 2014, 4:05:49 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/zoo-project/zoo-kernel/service_internal.c
r476 r478 26 26 #ifdef USE_MS 27 27 #include "service_internal_ms.h" 28 #else 29 #include "cpl_vsi.h" 28 30 #endif 29 31 … … 165 167 i++; 166 168 } 169 #ifdef DEBUG 167 170 fprintf(stderr,"READING STRING S %s\n",lpszBuf); 171 #endif 168 172 return (char*)lpszBuf; 169 173 } … … 2940 2944 tmpMap->value=(char*)malloc((fsize+1)*sizeof(char)); 2941 2945 if(tmpMap->value==NULL) 2942 fprintf(stderr,"Unable to allocate memory!\n");2946 return errorException(*m, _("Unable to allocate memory."), "InternalError",NULL); 2943 2947 //snprintf(tmpMap->value,(fsize+1)*sizeof(char),fcontent); 2944 2948 memcpy(tmpMap->value,fcontent,(fsize+1)*sizeof(char)); … … 2971 2975 } 2972 2976 2973 #ifdef USE_MS2974 2977 char *readVSIFile(maps* conf,const char* dataSource){ 2975 2978 VSILFILE * fichier=VSIFOpenL(dataSource,"rb"); … … 2989 2992 return res1; 2990 2993 } 2991 #endif2992 2994 2993 2995 void parseIdentifier(maps* conf,char* conf_dir,char *identifier,char* buffer){
Note: See TracChangeset
for help on using the changeset viewer.