Mercurial > illumos > illumos-gate
changeset 13214:ffcbc62702fd
345 need an open printf(1) (fix error)
author | Garrett D'Amore <garrett@nexenta.com> |
---|---|
date | Thu, 14 Oct 2010 12:10:54 -0700 |
parents | e0fc77b1e19e |
children | 25c1876a8d9c |
files | usr/src/cmd/printf/printf.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/usr/src/cmd/printf/printf.c Thu Oct 14 09:27:05 2010 -0700 +++ b/usr/src/cmd/printf/printf.c Thu Oct 14 12:10:54 2010 -0700 @@ -106,7 +106,7 @@ * but that do accept operands, shall recognize "--" as a * first argument to be discarded. */ - if (strcmp(argv[0], "--") == 0) { + if (argc && strcmp(argv[0], "--") == 0) { argc--; argv++; }