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

Unified Diff: app/clipboard/clipboard_linux.cc

Issue 267076: Turn NULL used as int to 0. (Closed)
Patch Set: Created 11 years, 2 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 | « no previous file | app/gfx/native_widget_types.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: app/clipboard/clipboard_linux.cc
diff --git a/app/clipboard/clipboard_linux.cc b/app/clipboard/clipboard_linux.cc
index 8b30ffda3ebfd46cfaa64d7000cfc1101dad6dcf..bc8a0b4db26283e30cd8f46e7f964624010e0bf9 100644
--- a/app/clipboard/clipboard_linux.cc
+++ b/app/clipboard/clipboard_linux.cc
@@ -204,7 +204,7 @@ void Clipboard::WriteBookmark(const char* title_data, size_t title_len,
// Write as a URI.
char* data = new char[url_len + 1];
memcpy(data, url_data, url_len);
- data[url_len] = NULL;
+ data[url_len] = '\0';
InsertMapping(kMimeURI, data, url_len + 1);
}
« no previous file with comments | « no previous file | app/gfx/native_widget_types.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698