commit | bdfd57e5a3a21ac340016a70ea425e4223f23b08 | [log] [tgz] |
---|---|---|
author | Yi Kong <yikong@google.com> | Wed Jul 25 13:26:10 2018 -0700 |
committer | Yi Kong <yikong@google.com> | Wed Jul 25 13:26:10 2018 -0700 |
tree | baab5276b89048e9f327b93bc4a5de07325d8287 | |
parent | 50fdf5a544b2f475082978df035e137223e3d454 [diff] [blame] |
Modernize codebase by replacing NULL with nullptr Fixes -Wzero-as-null-pointer-constant warning. Test: m Bug: 68236239 Change-Id: I226a0599db4f7c3557e55cade7869d00bd314949
diff --git a/server/ndc.cpp b/server/ndc.cpp index c86e53e..836e802 100644 --- a/server/ndc.cpp +++ b/server/ndc.cpp
@@ -76,7 +76,7 @@ } else { final_cmd = strdup(""); } - if (final_cmd == NULL) { + if (final_cmd == nullptr) { int res = errno; perror("strdup failed"); return res;