diff options
author | Michael Brown | 2012-07-04 14:37:08 +0200 |
---|---|---|
committer | Michael Brown | 2012-07-04 14:37:08 +0200 |
commit | f3d197a5296027899f51c1df573e2f8709295d65 (patch) | |
tree | 8ad0095134b4d1cceab3f50d48ac792ba53ea2c2 /src/core/exec.c | |
parent | [util] Avoid compiler warning on gcc 4.6 (diff) | |
download | ipxe-f3d197a5296027899f51c1df573e2f8709295d65.tar.gz ipxe-f3d197a5296027899f51c1df573e2f8709295d65.tar.xz ipxe-f3d197a5296027899f51c1df573e2f8709295d65.zip |
[cmdline] Do not ignore empty initial arguments in concat_args()
Reported-by: Oliver Rath <rath@mglug.de>
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/core/exec.c')
-rw-r--r-- | src/core/exec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/exec.c b/src/core/exec.c index 49261194..139cf7a8 100644 --- a/src/core/exec.c +++ b/src/core/exec.c @@ -358,7 +358,7 @@ char * concat_args ( char **args ) { ptr = string; for ( arg = args ; *arg ; arg++ ) { ptr += sprintf ( ptr, "%s%s", - ( ( ptr == string ) ? "" : " " ), *arg ); + ( ( arg == args ) ? "" : " " ), *arg ); } assert ( ptr < ( string + len ) ); |