version 1.25 | | version 1.26 |
---|
| | |
/* | | /* |
* static char *rcsid_style_c = | | * static char *rcsid_style_c = |
* "$Id: style.c,v 1.25 2006/02/10 23:59:27 akirschbaum Exp $"; | | * "$Id: style.c,v 1.26 2006/02/19 17:27:32 akirschbaum Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
| | |
/* is what we were given a directory, or a file? */ | | /* is what we were given a directory, or a file? */ |
sprintf(style_file_full_path,"%s/maps%s",settings.datadir,style_file_path); | | sprintf(style_file_full_path,"%s/maps%s",settings.datadir,style_file_path); |
stat(style_file_full_path,&file_stat); | | if (stat(style_file_full_path, &file_stat) == 0 |
| | && !S_ISDIR(file_stat.st_mode)) { |
if(! (S_ISDIR(file_stat.st_mode))) { | | |
style_map=load_style_map(style_file_path); | | style_map=load_style_map(style_file_path); |
} | | } |
if(style_map == NULL) /* maybe we were given a directory! */ | | if(style_map == NULL) /* maybe we were given a directory! */ |