diff options
| -rw-r--r-- | src/lj_strfmt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lj_strfmt.c b/src/lj_strfmt.c index 04aebaa4..bb649fc8 100644 --- a/src/lj_strfmt.c +++ b/src/lj_strfmt.c | |||
| @@ -170,7 +170,7 @@ const char *lj_strfmt_wstrnum(lua_State *L, cTValue *o, MSize *lenp) | |||
| 170 | } else if (tvisbuf(o)) { | 170 | } else if (tvisbuf(o)) { |
| 171 | SBufExt *sbx = bufV(o); | 171 | SBufExt *sbx = bufV(o); |
| 172 | *lenp = sbufxlen(sbx); | 172 | *lenp = sbufxlen(sbx); |
| 173 | return sbx->r; | 173 | return sbx->r ? sbx->r : ""; |
| 174 | } else if (tvisint(o)) { | 174 | } else if (tvisint(o)) { |
| 175 | sb = lj_strfmt_putint(lj_buf_tmp_(L), intV(o)); | 175 | sb = lj_strfmt_putint(lj_buf_tmp_(L), intV(o)); |
| 176 | } else if (tvisnum(o)) { | 176 | } else if (tvisnum(o)) { |
