Fix zero-length parameter bug in pex_run.
authorAndrew Stubbs <ams@codesourcery.com>
Mon, 19 Sep 2016 10:02:56 +0000 (10:02 +0000)
committerAndrew Stubbs <ams@gcc.gnu.org>
Mon, 19 Sep 2016 10:02:56 +0000 (10:02 +0000)
commit471a0d47ae10724631be478381821544932db99f
tree25eb5fbad302b98d985cc4c7ec67c84c7fbe74b5
parent321e76fbf83720a7d88948d3e157ea9097e099ad
Fix zero-length parameter bug in pex_run.

2016-09-19  Andrew Stubbs  <ams@codesourcery.com>

libiberty/
* pex-win32.c (argv_to_cmdline): Quote zero-length parameters.

libiberty/testsuite/
* test-pexecute.c (main): Insert check for zero-length parameters.

From-SVN: r240229
libiberty/ChangeLog
libiberty/pex-win32.c
libiberty/testsuite/test-pexecute.c