Skip to content

Commit 9e88586

Browse files
committed
Fix compiler warning 'maybe-uninitialized'
Signed-off-by: Stefan Widgren <[email protected]>
1 parent 85fcb23 commit 9e88586

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/git2r_tag.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
* git2r, R bindings to the libgit2 library.
3-
* Copyright (C) 2013-2018 The git2r contributors
3+
* Copyright (C) 2013-2019 The git2r contributors
44
*
55
* This program is free software; you can redistribute it and/or modify
66
* it under the terms of the GNU General Public License, version 2,
@@ -211,7 +211,7 @@ static int git2r_tag_foreach_cb(const char *name, git_oid *oid, void *payload)
211211
/* Check if we have a list to populate */
212212
if (!Rf_isNull(cb_data->tags)) {
213213
int skip = 0;
214-
SEXP item, tag;
214+
SEXP item = R_NilValue, tag;
215215

216216
error = git_object_lookup(&object, cb_data->repository, oid, GIT_OBJ_ANY);
217217
if (error)

0 commit comments

Comments
 (0)