process: fix an error found by static analysis.
authorIsmo Puustinen <ismo.puustinen@intel.com>
Fri, 19 Sep 2014 07:32:18 +0000 (10:32 +0300)
committerIsmo Puustinen <ismo.puustinen@intel.com>
Fri, 19 Sep 2014 07:32:18 +0000 (10:32 +0300)
src/common/process.c

index 6f3d196..826aa30 100644 (file)
@@ -582,7 +582,7 @@ int mrp_process_set_state(const char *id, mrp_process_state_t state)
     FILE *f;
     int ret = -1;
 
-    if (!initialize_dir() < 0)
+    if (initialize_dir() < 0)
         goto end;
 
     path = path_from_id(id);