Changeset 3397:e6a0b746f3e1 in roaraudio for libroarpulse


Ignore:
Timestamp:
02/11/10 15:29:20 (10 years ago)
Author:
phi
Branch:
default
Message:

handle server == NULL case

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libroarpulse/context.c

    r3396 r3397  
    150150 } 
    151151 
    152  c->server = roar_mm_strdup(server); 
     152 if ( server == NULL ) { 
     153  c->server = NULL; 
     154 } else { 
     155  c->server = roar_mm_strdup(server); 
     156 } 
     157 
    153158 pa_context_set_state(c, PA_CONTEXT_READY); 
    154159 
Note: See TracChangeset for help on using the changeset viewer.