Show
Ignore:
Timestamp:
11/22/11 23:59:57 (2 years ago)
Author:
Theo Schlossnagle <jesus@omniti.com>
git-committer:
Theo Schlossnagle <jesus@omniti.com> 1322006397 -0500
git-parent:

[39120ca355870745f19446dee86dbae44997dcc3]

git-author:
Theo Schlossnagle <jesus@omniti.com> 1322006397 -0500
Message:

prevent double initialization

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • src/stratcon_datastore.c

    rfd80657 re818265  
    471471void 
    472472stratcon_datastore_core_init() { 
     473  static int initialized = 0; 
     474  if(initialized) return; 
     475  initialized = 1; 
    473476  ds_err = noit_log_stream_find("error/datastore"); 
    474477  ds_deb = noit_log_stream_find("debug/datastore"); 
     
    485488void 
    486489stratcon_datastore_init() { 
     490  static int initialized = 0; 
     491  if(initialized) return; 
     492  initialized = 1; 
    487493  stratcon_datastore_core_init(); 
    488494