Skip to content

Commit bf3d7d1

Browse files
committed
ext/tidy: Use RETURN_STR() instead of RETVAL_STR() + return;
1 parent 4fd91c6 commit bf3d7d1

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

ext/tidy/tidy.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1323,8 +1323,7 @@ PHP_FUNCTION(tidy_getopt)
13231323
optval = php_tidy_get_opt_val(obj->ptdoc, opt, &optt);
13241324
switch (optt) {
13251325
case TidyString:
1326-
RETVAL_STR((zend_string*)optval);
1327-
return;
1326+
RETURN_STR((zend_string*)optval);
13281327

13291328
case TidyInteger:
13301329
RETURN_LONG((zend_long)optval);

0 commit comments

Comments
 (0)