diff options
author | nsylvain@chromium.org <nsylvain@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-04-13 20:57:16 +0000 |
---|---|---|
committer | nsylvain@chromium.org <nsylvain@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-04-13 20:57:16 +0000 |
commit | 338216a5881f864ed4ef9d9e672baa5fd58bba4a (patch) | |
tree | 856b3bc0d1cde46f44fd3c6e624ed19b3dbe5dad /chrome/nacl | |
parent | 39102af3f3d1f022f2f76d503708e10eda010611 (diff) | |
download | chromium_src-338216a5881f864ed4ef9d9e672baa5fd58bba4a.zip chromium_src-338216a5881f864ed4ef9d9e672baa5fd58bba4a.tar.gz chromium_src-338216a5881f864ed4ef9d9e672baa5fd58bba4a.tar.bz2 |
Remove possible nullptr deref from an unused (with non-null values) variable.
Change by Jan Voung (jvoung@google.com)
Review URL: http://codereview.chromium.org/1585033
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@44393 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/nacl')
-rw-r--r-- | chrome/nacl/sel_main.cc | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/chrome/nacl/sel_main.cc b/chrome/nacl/sel_main.cc index d8fb30b..a7c5e8d 100644 --- a/chrome/nacl/sel_main.cc +++ b/chrome/nacl/sel_main.cc @@ -61,7 +61,6 @@ int SelMain(const int desc, const NaClHandle handle) { char **envp; struct NaClApp state; - char *nacl_file = 0; int main_thread_only = 1; int export_addr_to = -2; @@ -115,8 +114,7 @@ int SelMain(const int desc, const NaClHandle handle) { if (!NaClOsIsSupported()) { errcode = LOAD_UNSUPPORTED_OS_PLATFORM; nap->module_load_status = errcode; - fprintf(stderr, "Error while loading \"%s\": %s\n", - nacl_file, + fprintf(stderr, "Error while loading in SelMain: %s\n", NaClErrorString(errcode)); } |