Changeset 1698 for trunk/oscam-config.c


Ignore:
Timestamp:
02/26/10 08:23:39 (11 years ago)
Author:
alno
Message:
  • default value for emmfile on empty token "readnano"
  • cleanup
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/oscam-config.c

    r1695 r1698  
    21222122
    21232123    if (!strcmp(token, "readnano") && value[0]) {
    2124         asprintf(&(rdr->emmfile), "%s", value);
     2124        if (rdr->emmfile != NULL) {
     2125            free(rdr->emmfile);
     2126            rdr->emmfile = NULL;
     2127        }
     2128        if (strlen(value) > 0)
     2129            asprintf(&(rdr->emmfile), "%s", value);
    21252130        return;
    21262131    }
Note: See TracChangeset for help on using the changeset viewer.