- Timestamp:
- Mar 19, 2015, 10:01:11 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/PublicaMundi_David-devel/zoo-project/zoo-kernel/service_internal.c
r549 r617 1977 1977 xmlDocSetRootElement (doc, nr); 1978 1978 1979 if (hasStoredExecuteResponse == true) 1980 { 1979 1980 map * background = NULL; 1981 background = getMapFromMaps(m,"lenv","background"); 1982 1983 if (background != NULL){ 1984 /* requete asynchrone */ 1981 1985 /* We need to write the ExecuteResponse Document somewhere */ 1982 1986 FILE *output = fopen (stored_path, "w"); … … 2006 2010 fclose (output); 2007 2011 } 2012 else { 2008 2013 printDocument (m, doc, pid,out); 2009 2014 } 2010 2015 xmlCleanupParser (); 2011 2016 zooXmlCleanupNs (); … … 2031 2036 */ 2032 2037 xmlDocDumpFormatMemoryEnc (doc, &xmlbuff, &buffersize, encoding, 1); 2033 FCGX_FPrintF(out,(char *)xmlbuff); 2034 FCGX_FFlush(out); 2038 2039 2040 if (out != NULL){ 2041 FCGX_FPrintF(out,(char *)xmlbuff); 2042 FCGX_FFlush(out); 2043 } 2035 2044 //printf ("%s", xmlbuff); 2036 2045 //fflush (stdout); … … 3687 3696 if (fsize == 0) 3688 3697 { 3698 3689 3699 return errorException (*m, _("Unable to download the file."), 3690 3700 "InternalError", NULL,NULL); … … 3699 3709 free (tmpMap->value); 3700 3710 tmpMap->value = (char *) malloc ((fsize + 1) * sizeof (char)); 3701 if (tmpMap->value == NULL) 3711 if (tmpMap->value == NULL){ 3712 3702 3713 return errorException (*m, _("Unable to allocate memory."), 3703 3714 "InternalError", NULL,NULL); 3715 } 3704 3716 memcpy (tmpMap->value, fcontent, (fsize + 1) * sizeof (char)); 3705 3717
Note: See TracChangeset
for help on using the changeset viewer.