summaryrefslogtreecommitdiffstats
path: root/text-utils/pg.c
diff options
context:
space:
mode:
Diffstat (limited to 'text-utils/pg.c')
-rw-r--r--text-utils/pg.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/text-utils/pg.c b/text-utils/pg.c
index 9fbbc0bbf..bf4ab6d11 100644
--- a/text-utils/pg.c
+++ b/text-utils/pg.c
@@ -856,8 +856,10 @@ static void
makeprint(char *s, size_t l)
{
#ifdef HAVE_WIDECHAR
- if (MB_CUR_MAX > 1)
- return makeprint_for_mb(s, l);
+ if (MB_CUR_MAX > 1) {
+ makeprint_for_mb(s, l);
+ return;
+ }
#endif
while (l--) {