Navigation


Changeset 511:17435072de36 in freeDiameter for extensions/app_diameap/diameap.y


Ignore:
Timestamp:
Aug 20, 2010, 3:18:58 PM (14 years ago)
Author:
Sebastien Decugis <sdecugis@nict.go.jp>
Branch:
default
Phase:
public
Message:

Search extensions conf files in the main configuration folder also

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/app_diameap/diameap.y

    r425 r511  
    134134                        if ((fl == NULL) && (*cfile != '/')) {
    135135                                char * tmp = cfile;
    136                                 CHECK_MALLOC_DO( cfile = malloc( strlen(tmp) + strlen(DEFAULT_EXTENSIONS_PATH) + 2 ),
     136                                CHECK_MALLOC_DO( cfile = malloc( strlen(tmp) + strlen(DEFAULT_CONF_PATH) + 2 ),
    137137                                        { yyerror (&yylloc, config, "Not enough memory"); YYERROR; } );
    138                                 sprintf(cfile, DEFAULT_EXTENSIONS_PATH "/%s", tmp);
     138                                sprintf(cfile, DEFAULT_CONF_PATH "/%s", tmp);
    139139                                free(tmp);
    140140                                fl = fopen(cfile, "r");
Note: See TracChangeset for help on using the changeset viewer.