changeset 1076:695375ba679a

post fmt3: don't open code str_empty_string() Signed-off-by: Josef 'Jeff' Sipek <jeffpc@josefsipek.net>
author Josef 'Jeff' Sipek <jeffpc@josefsipek.net>
date Tue, 15 Aug 2017 16:46:04 +0300
parents 1b77cb385ca6
children 85c31697a99f
files post_fmt3.y post_fmt3_cmds.c
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/post_fmt3.y	Fri Aug 11 00:12:03 2017 +0300
+++ b/post_fmt3.y	Tue Aug 15 16:46:04 2017 +0300
@@ -174,7 +174,7 @@
 
 post : paragraphs PAREND		{ data->stroutput = $1; }
      | paragraphs			{ data->stroutput = $1; }
-     | PAREND				{ data->stroutput = STATIC_STR(""); }
+     | PAREND				{ data->stroutput = str_empty_string(); }
      ;
 
 paragraphs : paragraphs PAREND paragraph	{ $$ = str_cat(4, $1, STATIC_STR("<p>"), $3, STATIC_STR("</p>\n")); }
--- a/post_fmt3_cmds.c	Fri Aug 11 00:12:03 2017 +0300
+++ b/post_fmt3_cmds.c	Tue Aug 15 16:46:04 2017 +0300
@@ -346,7 +346,7 @@
 	str_putref(txt);
 	str_putref(opt);
 
-	return STATIC_STR("");
+	return str_empty_string();
 }
 
 typedef enum {