]> git.lyx.org Git - lyx.git/blobdiff - src/support/ForkedCalls.cpp
Fix Coverity false positive for null-pointer dereference
[lyx.git] / src / support / ForkedCalls.cpp
index f6b14e0df49c51ae13c7af7f0acbfb4d68631fd9..eb07314fe50f897a063d1074b870ed4574a67dfe 100644 (file)
@@ -94,7 +94,7 @@ private:
        pid_t pid_;
 };
 
-} // namespace anon
+} // namespace
 
 
 /////////////////////////////////////////////////////////////////////
@@ -374,7 +374,7 @@ int ForkedCall::generateChild()
                        argv.push_back(&*it);
                prev = *it;
        }
-       argv.push_back(0);
+       argv.push_back(nullptr);
 
        // Debug output.
        if (lyxerr.debugging(Debug::FILES)) {
@@ -513,8 +513,7 @@ bool running()
        return running_;
 }
 
-} // namespace ForkedCallsQueue
-
+} // namespace ForkedCallQueue
 
 
 /////////////////////////////////////////////////////////////////////
@@ -662,7 +661,7 @@ void handleCompletedProcesses()
                        forkedCalls.erase(it);
                        actCall->emitSignal();
 
-                       /* start all over: emiting the signal can result
+                       /* start all over: emitting the signal can result
                         * in changing the list (Ab)
                         */
                        it = forkedCalls.begin();