Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(814)

Unified Diff: sandbox/src/process_policy_test.cc

Issue 155904: Fix FORWARD_NULL defects reported by Coverity.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Remove incorrect change Created 11 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sandbox/src/named_pipe_policy_test.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sandbox/src/process_policy_test.cc
===================================================================
--- sandbox/src/process_policy_test.cc (revision 21261)
+++ sandbox/src/process_policy_test.cc (working copy)
@@ -99,7 +99,7 @@
if (argc != 1) {
return SBOX_TEST_FAILED_TO_EXECUTE_COMMAND;
}
- if ((NULL != argv) && (NULL == argv[0])) {
+ if ((NULL == argv) || (NULL == argv[0])) {
return SBOX_TEST_FAILED_TO_EXECUTE_COMMAND;
}
std::wstring path = MakeFullPathToSystem32(argv[0]);
@@ -163,7 +163,7 @@
if (argc != 1)
return SBOX_TEST_FAILED_TO_EXECUTE_COMMAND;
- if ((NULL != argv) && (NULL == argv[0]))
+ if ((NULL == argv) || (NULL == argv[0]))
return SBOX_TEST_FAILED_TO_EXECUTE_COMMAND;
std::wstring path = MakeFullPathToSystem32(argv[0]);
« no previous file with comments | « sandbox/src/named_pipe_policy_test.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698