ext/redcloth_scan/redcloth_scan.c.rl in BBRedCloth-0.8.5 vs ext/redcloth_scan/redcloth_scan.c.rl in BBRedCloth-0.8.6
- old
+ new
@@ -97,11 +97,11 @@
if (RSTRING_LEN(str) == 0)
return new_str;
char *ts = RSTRING_PTR(str), *te = RSTRING_PTR(str) + RSTRING_LEN(str);
char *t = ts, *t2 = ts, *ch = NULL;
- if (te <= ts) return;
+ if (te <= ts) return STR_NEW2("");
while (t2 < te) {
ch = NULL;
// normal + pre
@@ -156,10 +156,10 @@
if (RSTRING_LEN(str) == 0)
return new_str;
char *ts = RSTRING_PTR(str), *te = RSTRING_PTR(str) + RSTRING_LEN(str);
char *t = ts, *t2 = ts, *ch = NULL;
- if (te <= ts) return;
+ if (te <= ts) return STR_NEW2("");
while (t2 < te) {
ch = NULL;
switch (*t2)
\ No newline at end of file