Skip to content

Commit 89ddbd2

Browse files
committed
Use NULL instead of 0 for a char* in ruby.c
1 parent 672a730 commit 89ddbd2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/c/cext/ruby.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -793,7 +793,7 @@ VALUE rb_str_to_str(VALUE string) {
793793
}
794794

795795
VALUE rb_str_buf_new(long capacity) {
796-
VALUE str = rb_str_new(0, capacity);
796+
VALUE str = rb_str_new(NULL, capacity);
797797
rb_str_set_len(str, 0);
798798
return str;
799799
}

0 commit comments

Comments
 (0)