Changeset 585 for trunk


Ignore:
Timestamp:
Feb 16, 2015, 11:06:51 AM (10 years ago)
Author:
knut
Message:

Added MIME type text/html to list of default file extensions. Fixed memory allocation problem in (deprecated?) function _getStatus.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/zoo-project/zoo-kernel/service_internal.c

    r580 r585  
    137137#endif
    138138     ){
    139     char tmp[3];
     139        char* tmp = (char*) malloc(3*sizeof(char));
    140140    sprintf(tmp,"%d",ZOO_LOCK_CREATE_FAILED);
    141141    return tmp;
     
    143143  if(lockShm(lockid)<0){
    144144    fprintf(stderr,"%s %d\n",__FILE__,__LINE__);
    145     fflush(stderr);
    146     char tmp[3];
     145    fflush(stderr);   
     146        char* tmp = (char*) malloc(3*sizeof(char));
    147147    sprintf(tmp,"%d",ZOO_LOCK_ACQUIRE_FAILED);
    148148    return tmp;
     
    28262826                else if(strncmp(mtype->value,"image/",6)==0)
    28272827                  ext=createMap("extension",strstr(mtype->value,"/")+1);
     2828            else if(strcasecmp(mtype->value,"text/html")==0)
     2829              ext=createMap("extension","html");         
    28282830                else
    28292831                  ext=createMap("extension","txt");
Note: See TracChangeset for help on using the changeset viewer.

Search

Context Navigation

ZOO Sponsors

http://www.zoo-project.org/trac/chrome/site/img/geolabs-logo.pnghttp://www.zoo-project.org/trac/chrome/site/img/neogeo-logo.png http://www.zoo-project.org/trac/chrome/site/img/apptech-logo.png http://www.zoo-project.org/trac/chrome/site/img/3liz-logo.png http://www.zoo-project.org/trac/chrome/site/img/gateway-logo.png

Become a sponsor !

Knowledge partners

http://www.zoo-project.org/trac/chrome/site/img/ocu-logo.png http://www.zoo-project.org/trac/chrome/site/img/gucas-logo.png http://www.zoo-project.org/trac/chrome/site/img/polimi-logo.png http://www.zoo-project.org/trac/chrome/site/img/fem-logo.png http://www.zoo-project.org/trac/chrome/site/img/supsi-logo.png http://www.zoo-project.org/trac/chrome/site/img/cumtb-logo.png

Become a knowledge partner

Related links

http://zoo-project.org/img/ogclogo.png http://zoo-project.org/img/osgeologo.png