Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
P
protobuf
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
protobuf
Commits
d41db75d
Commit
d41db75d
authored
Feb 17, 2016
by
Joshua Haberman
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #260 from ejsd1989/issue-#242
Removes redundant null pointer checks checks
parents
8fc045d8
914605c4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
4 deletions
+2
-4
cpp_bootstrap_unittest.cc
src/google/protobuf/compiler/cpp/cpp_bootstrap_unittest.cc
+1
-1
gzip_stream.cc
src/google/protobuf/io/gzip_stream.cc
+1
-3
No files found.
src/google/protobuf/compiler/cpp/cpp_bootstrap_unittest.cc
View file @
d41db75d
...
...
@@ -107,7 +107,7 @@ class MockGeneratorContext : public GeneratorContext {
virtual
io
::
ZeroCopyOutputStream
*
Open
(
const
string
&
filename
)
{
string
**
map_slot
=
&
files_
[
filename
];
if
(
*
map_slot
!=
NULL
)
delete
*
map_slot
;
delete
*
map_slot
;
*
map_slot
=
new
string
;
return
new
io
::
StringOutputStream
(
*
map_slot
);
...
...
src/google/protobuf/io/gzip_stream.cc
View file @
d41db75d
...
...
@@ -241,9 +241,7 @@ void GzipOutputStream::Init(ZeroCopyOutputStream* sub_stream,
GzipOutputStream
::~
GzipOutputStream
()
{
Close
();
if
(
input_buffer_
!=
NULL
)
{
operator
delete
(
input_buffer_
);
}
operator
delete
(
input_buffer_
);
}
// private
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment