Changeset 587

Show
Ignore:
Timestamp:
05/23/09 07:07:09 (1 year ago)
Author:
erikd
Message:

Handle NULL return from src_get_description.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • sweep/trunk/src/samplerate.c

    r378 r587  
    337337{ 
    338338  GtkWidget * label; 
     339  const char * desc; 
    339340  gchar * new_text, * c; 
    340341 
     
    342343    GTK_WIDGET(g_object_get_data (G_OBJECT(dialog), "quality_label")); 
    343344 
    344   new_text = g_strdup (src_get_description (quality)); 
     345  desc = src_get_description (quality) ; 
     346  if (desc == NULL) 
     347    return ; 
     348 
     349  new_text = g_strdup (desc); 
    345350 
    346351  /* replace commas in description with newline characters */