Changeset 3062:d309ace87cda in roaraudio


Ignore:
Timestamp:
12/22/09 09:35:36 (14 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

fixed SIGSEGV on no query string

File:
1 edited

Legend:

Unmodified
Added
Removed
  • roarclients/roarmonhttp.c

    r2813 r3062  
    238238#endif 
    239239 
     240 c = getenv("QUERY_STRING"); 
     241 if ( c == NULL ) 
     242  c = ""; 
     243 
    240244#ifdef ROAR_HAVE_STRTOK_R 
    241  c = strtok_r(getenv("QUERY_STRING"), "&", &sp0); 
    242 #else 
    243  c = strtok(getenv("QUERY_STRING"), "&"); 
     245 c = strtok_r(c, "&", &sp0); 
     246#else 
     247 c = strtok(c, "&"); 
    244248#endif 
    245249 
Note: See TracChangeset for help on using the changeset viewer.