FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Initialize pointers to fix compiler warnings about uninitialized local variables by rcjsuen · Pull Request #1210 · nodegit/nodegit · GitHub

Repository navigation

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension .cc  (1) All 1 file type selected
Viewed files
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Unified
Split
Hide whitespace
Diff view
Unified
Split
Hide whitespace
6 changes: 6 additions & 0 deletions generate/templates/partials/convert_from_v8.cc
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
{%if not isPayload %}
// start convert_from_v8 block
{%if cType|isPointer %}
{{ cType }} from_{{ name }} = NULL;
{%elsif cType|isDoublePointer %}
{{ cType }} from_{{ name }} = NULL;
{%else%}
{{ cType }} from_{{ name }};
{%endif%}
{%if isOptional | or isBoolean %}

{%if cppClassName == 'GitStrarray'%}
Expand Down

Back | FazBrowse Home | New Git URL