Changeset 5431:4cd68e4f7a78 in roaraudio


Ignore:
Timestamp:
03/20/12 12:53:45 (12 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

protect against double ra_init

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libroar/roardl.c

    r5430 r5431  
    5656  struct roar_notify_core * notifycore; 
    5757 } context; 
     58 int ra_inited; 
    5859#if defined(ROAR_HAVE_LIBDL) 
    5960 void * handle; 
     
    491492   return -1; 
    492493 } else { 
     494  if ( lhandle->ra_inited ) 
     495   return 0; 
     496 
    493497  if ( prefix == NULL ) 
    494498   prefix = lhandle->libname; 
     
    584588  } 
    585589 } 
     590 
     591 if ( !((void*)lhandle < (void*)128) ) 
     592  lhandle->ra_inited = 1; 
    586593 
    587594 return 0; 
Note: See TracChangeset for help on using the changeset viewer.