Bug 778980 - Part 4a: Fix gcc -Wconversion-null warnings in ipc/chromium. r=bsmedberg

--HG--
extra : rebase_source : f74cecfefcdd599cf888d961906d0c033a9ee786
This commit is contained in:
Chris Peterson 2012-09-21 09:28:13 -07:00
parent 3127da5ab0
commit ffc8bf2738
3 changed files with 3 additions and 3 deletions

View File

@ -194,7 +194,7 @@ bool ReadFileToString(const FilePath& path, std::string* contents) {
FILE* CreateAndOpenTemporaryFile(FilePath* path) {
FilePath directory;
if (!GetTempDir(&directory))
return false;
return NULL;
return CreateAndOpenTemporaryFileInDir(directory, path);
}

View File

@ -392,7 +392,7 @@ bool CreateTemporaryFileName(FilePath* path) {
FILE* CreateAndOpenTemporaryShmemFile(FilePath* path) {
FilePath directory;
if (!GetShmemTempDir(&directory))
return false;
return NULL;
return CreateAndOpenTemporaryFileInDir(directory, path);
}

View File

@ -492,7 +492,7 @@ char* Pickle::BeginWriteData(int length) {
"There can only be one variable buffer in a Pickle";
if (!WriteInt(length))
return false;
return NULL;
char *data_ptr = BeginWrite(length, sizeof(uint32_t));
if (!data_ptr)