Changeset 6525 for trunk/licq

Show
Ignore:
Timestamp:
09/14/08 18:10:07 (3 months ago)
Author:
flynd
Message:

Only perform onevent if there is a parameter.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/licq/src/onevent.cpp

    r6521 r6525  
    112112      free(szFullParam); 
    113113    } 
    114     string fullCmd = myCommand + " " + param + " &"; 
    115     system(fullCmd.c_str()); 
     114    if (!param.empty()) 
     115    { 
     116      string fullCmd = myCommand + " " + param + " &"; 
     117      system(fullCmd.c_str()); 
     118    } 
    116119  } 
    117120  pthread_mutex_unlock(&mutex);