Skip to content

Commit

Permalink
Fix unprotected arguments
Browse files Browse the repository at this point in the history
Signed-off-by: Stefan Widgren <stefan.widgren@gmail.com>
  • Loading branch information
stewid committed Jul 10, 2017
1 parent e6a4ebd commit 6e5bd86
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/git2r_config.c
@@ -1,6 +1,6 @@
/*
* git2r, R bindings to the libgit2 library.
* Copyright (C) 2013-2015 The git2r contributors
* Copyright (C) 2013-2017 The git2r contributors
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License, version 2,
Expand Down Expand Up @@ -108,16 +108,16 @@ static size_t git2r_config_list_init(
{
if (n_level[level]) {
SEXP item;
SEXP names;

i_list[level] = i++;
SET_VECTOR_ELT(
list,
i_list[level],
item = allocVector(VECSXP, n_level[level]));
setAttrib(item, R_NamesSymbol, allocVector(STRSXP, n_level[level]));
SET_STRING_ELT(getAttrib(list, R_NamesSymbol),
i_list[level] ,
mkChar(name));
names = getAttrib(list, R_NamesSymbol);
SET_STRING_ELT(names, i_list[level] , mkChar(name));
}

return i;
Expand Down

0 comments on commit 6e5bd86

Please sign in to comment.