mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 03:15:11 +00:00
Bug 778980 - Part 4a: Fix gcc -Wconversion-null warnings in ipc/chromium. r=bsmedberg
--HG-- extra : rebase_source : f74cecfefcdd599cf888d961906d0c033a9ee786
This commit is contained in:
parent
3127da5ab0
commit
ffc8bf2738
@ -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);
|
||||
}
|
||||
|
@ -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);
|
||||
}
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user