We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a3ba51f commit e849be6Copy full SHA for e849be6
ext/rugged/rugged.c
@@ -121,9 +121,10 @@ static VALUE rb_git_features(VALUE self)
121
static VALUE rb_git_valid_full_oid(VALUE self, VALUE hex)
122
{
123
git_oid oid;
124
+ int errorcode;
125
126
Check_Type(hex, T_STRING);
- int errorcode = git_oid_fromstr(&oid, StringValueCStr(hex));
127
+ errorcode = git_oid_fromstr(&oid, StringValueCStr(hex));
128
if (errorcode < 0) {
129
return Qfalse;
130
} else {
0 commit comments