Commit 282f135

mo khan <mo.khan@gmail.com>
2020-05-15 16:19:57
warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
1 parent c7067d5
Changed files (1)
ext
spandx
ext/spandx/spandx.c
@@ -13,7 +13,9 @@ static VALUE parse(VALUE self, VALUE line)
 {
   if (NIL_P(line)) return Qnil;
 
-  char *p = RSTRING_PTR(line);
+  char *p;
+
+  p = RSTRING_PTR(line);
   if (*p != '"') return Qnil;
 
   const VALUE items = rb_ary_new2(3);