diff options
| author | Vicent Marti <tanoku@gmail.com> | 2011-03-04 15:23:52 +0200 |
|---|---|---|
| committer | Vicent Marti <tanoku@gmail.com> | 2011-03-04 15:23:52 +0200 |
| commit | e06dd9b6d650008c1b0731dea2de5dea1884fd28 (patch) | |
| tree | 45b32145066d5b04978c84edabe927e1f0271839 /src | |
| parent | f7fcb0dd1be9c6b863468303d082c27e2583bb13 (diff) | |
| download | libgit2-e06dd9b6d650008c1b0731dea2de5dea1884fd28.tar.gz | |
Fix 'possibly uninitialized variable' warning
Diffstat (limited to 'src')
| -rw-r--r-- | src/refs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/refs.c b/src/refs.c index 542401c2f..10df8e0c4 100644 --- a/src/refs.c +++ b/src/refs.c @@ -405,7 +405,7 @@ static int packed_parse_oid( const char **buffer_out, const char *buffer_end) { - reference_oid *ref; + reference_oid *ref = NULL; const char *buffer = *buffer_out; const char *refname_begin, *refname_end; |
