]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
util.c: avoid dead store to "flag"
authorJim Meyering <meyering@redhat.com>
Fri, 4 Sep 2009 16:53:20 +0000 (18:53 +0200)
committerJim Meyering <meyering@redhat.com>
Mon, 7 Sep 2009 16:13:43 +0000 (18:13 +0200)
* src/util.c (virExecDaemonize): Change flag |= VAR to "flag | VAR".

src/util.c

index 2529837436a784a38977103c93146aac5f600598..af50028c1db050b4e6713ebcd67a3cd1d85b42e5 100644 (file)
@@ -663,7 +663,7 @@ int virExecDaemonize(virConnectPtr conn,
 
     ret = virExecWithHook(conn, argv, envp, keepfd, retpid,
                           infd, outfd, errfd,
-                          flags |= VIR_EXEC_DAEMON,
+                          flags | VIR_EXEC_DAEMON,
                           hook, data, pidfile);
 
     /* __virExec should have set an error */