fix ploot-text using argv[0] - ploot - simple plotting tools
(HTM) git clone git://bitreich.org/ploot git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/ploot
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) Tags
(DIR) README
(DIR) LICENSE
---
(DIR) commit f40c90855b60ca35db31fa76f058a3c250a45ffd
(DIR) parent 01a01b8547e85c8e1a33b4a7e42fd928c2f1f0ce
(HTM) Author: Josuah Demangeon <me@josuah.net>
Date: Sun, 11 Oct 2020 17:17:04 +0200
fix ploot-text using argv[0]
Overriding optind appear to be undefined by the standard library.
This lead to a bug making ploot-text unusable depending on the libc.
Diffstat:
M ploot-text.c | 1 -
1 file changed, 0 insertions(+), 1 deletion(-)
---
(DIR) diff --git a/ploot-text.c b/ploot-text.c
@@ -25,7 +25,6 @@ main(int argc, char **argv)
int c, row;
ft = &font8;
- optind = 0;
while ((c = getopt(argc, argv, "12")) > -1) {
switch (c) {
case '1':