summary refs log tree commit diff
path: root/Src
diff options
context:
space:
mode:
authorWayne Davison <wayned@users.sourceforge.net>2005-08-08 23:06:20 +0000
committerWayne Davison <wayned@users.sourceforge.net>2005-08-08 23:06:20 +0000
commit756bea5ffa96d32c58be7fb731cd73e32d5672e3 (patch)
treef1279f5b2db24bc5b81d335786a5256f04b0ce3f /Src
parent6c79be71af8fa721348255dfd799336c956e9954 (diff)
downloadzsh-756bea5ffa96d32c58be7fb731cd73e32d5672e3.tar.gz
zsh-756bea5ffa96d32c58be7fb731cd73e32d5672e3.tar.xz
zsh-756bea5ffa96d32c58be7fb731cd73e32d5672e3.zip
Fixed a recently-introduced bug where printf %b with an empty arg
would output a single space instead of nothing.
Diffstat (limited to 'Src')
-rw-r--r--Src/builtin.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Src/builtin.c b/Src/builtin.c
index b17b6d4aa..de1cb68e4 100644
--- a/Src/builtin.c
+++ b/Src/builtin.c
@@ -3774,7 +3774,7 @@ bin_print(char *name, char **args, Options ops, int func)
 			flen = c - fmt + 1;
 			fmttrunc = 1;
 		    }
-		} else
+		} else if (width)
 		    count += fprintf(fout, "%*c", width, ' ');
 		break;
 	    case 'q':