Ignore:
Timestamp:
10/11/10 13:47:05 (10 years ago)
Author:
schlocke
Message:

webif: fixed segfault

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/oscam-http-helpers.c

    r3181 r3482  
    424424    return "";
    425425}
     426
     427char *getParamDef(struct uriparams *params, char *name, char* def){
     428    int i;
     429    for(i=(*params).paramcount-1; i>=0; --i){
     430        if(strcmp((*params).params[i], name) == 0) return (*params).values[i];
     431    }
     432    return def;
     433}
    426434#endif
Note: See TracChangeset for help on using the changeset viewer.