]> git.pld-linux.org Git - packages/popt.git/blame - popt-alias-argc.patch
- added alias-argc patch: don't require sentinel in alias argv (argc should be enough)
[packages/popt.git] / popt-alias-argc.patch
CommitLineData
e130537d
JB
1--- popt-1.17/popt.c.orig 2014-08-09 22:13:11.000000000 +0200
2+++ popt-1.17/popt.c 2018-12-08 09:41:33.241167491 +0100
3@@ -1774,7 +1774,7 @@
4 item->option.argDescrip = _free(item->option.argDescrip);
5 /*@=modobserver =observertrans =dependenttrans@*/
6 #if !defined(SUPPORT_CONTIGUOUS_ARGV)
7- for (i = 0; item->argv[i]; i++)
8+ for (i = 0; (i < item->argc) && item->argv[i]; i++)
9 item->argv[i] = _free(item->argv[i]);
10 #endif
11 item->argv = _free(item->argv);
This page took 0.056343 seconds and 4 git commands to generate.