Changeset 293


Ignore:
Timestamp:
Aug 3, 2011, 4:05:29 PM (13 years ago)
Author:
djay
Message:

Small fix.

File:
1 edited

Legend:

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

    r292 r293  
    23342334    fflush(stderr);
    23352335#endif
    2336     struct stat f_status;
    2337     int s=stat(fname, &f_status);
    2338     if(f_status.st_size>0){
    2339       FILE* fo=fopen(fname,"w+");
    2340       fwrite(content,sizeof(char),length,fo);
    2341       free(md5str);
    2342       free(fname);
    2343       fclose(fo);
    2344     }
     2336    FILE* fo=fopen(fname,"w+");
     2337    fwrite(content,sizeof(char),length,fo);
     2338    fclose(fo);
     2339    free(md5str);
     2340    free(fname);
    23452341  }
    23462342}
     
    23592355    if(s==0 && f_status.st_size>0){
    23602356      free(md5str);
    2361       free(fname);
    23622357      return fname;
    23632358    }
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