commit | b37e81d3cd15d42c6eabd7e9468d301cbb6a36fd | [log] [tgz] |
---|---|---|
author | Treehugger Robot <treehugger-gerrit@google.com> | Tue Oct 11 19:29:36 2016 +0000 |
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | Tue Oct 11 19:29:37 2016 +0000 |
tree | 3398700b2fb92536696af8a2a6db60929f08a26a | |
parent | f943e138d7f180cdad8a7893e69fc53cdead40d1 [diff] | |
parent | 4f1a91cbacf0fb46e8eec586bba1209a9514896e [diff] |
Merge "Fix a nullness warning."
diff --git a/tools/zipalign/ZipEntry.cpp b/tools/zipalign/ZipEntry.cpp index 2f33e23..a9c2d33 100644 --- a/tools/zipalign/ZipEntry.cpp +++ b/tools/zipalign/ZipEntry.cpp
@@ -130,6 +130,7 @@ if (mCDE.mFileCommentLength > 0) { /* TODO: stop assuming null-terminated ASCII here? */ mCDE.mFileComment = new uint8_t[mCDE.mFileCommentLength+1]; + assert(comment != NULL); strcpy((char*) mCDE.mFileComment, comment); }