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
1589b1d8
Commit
1589b1d8
authored
Apr 28, 2009
by
temporal
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix startup crash when statically linking on Mac.
parent
c5ff06cc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
descriptor_database.cc
src/google/protobuf/descriptor_database.cc
+4
-1
No files found.
src/google/protobuf/descriptor_database.cc
View file @
1589b1d8
...
...
@@ -57,7 +57,10 @@ bool SimpleDescriptorDatabase::DescriptorIndex<Value>::AddFile(
return
false
;
}
string
path
=
file
.
package
();
// We must be careful here -- calling file.package() if file.has_package() is
// false could access an uninitialized static-storage variable if we are being
// run at startup time.
string
path
=
file
.
has_package
()
?
file
.
package
()
:
string
();
if
(
!
path
.
empty
())
path
+=
'.'
;
for
(
int
i
=
0
;
i
<
file
.
message_type_size
();
i
++
)
{
...
...
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