Changeset 5246:eae8bfcfa99d in roaraudio


Ignore:
Timestamp:
11/13/11 12:49:41 (12 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

handle NULL options correctly.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • roard/sources.c

    r5242 r5246  
    164164 s->pos_rel_id = -1; 
    165165 
    166  k = roar_mm_strtok_r(options, ",", &strtok_store); 
     166 if ( options == NULL ) { 
     167  k = NULL; 
     168 } else { 
     169  k = roar_mm_strtok_r(options, ",", &strtok_store); 
     170 } 
    167171 while (k != NULL) { 
    168172  if ( (v = strstr(k, "=")) != NULL ) { 
Note: See TracChangeset for help on using the changeset viewer.