fix ploot-text using argv[0] - ploot - simple plotting tools | |
git clone git://bitreich.org/ploot git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65… | |
Log | |
Files | |
Refs | |
Tags | |
README | |
LICENSE | |
--- | |
commit f40c90855b60ca35db31fa76f058a3c250a45ffd | |
parent 01a01b8547e85c8e1a33b4a7e42fd928c2f1f0ce | |
Author: Josuah Demangeon <[email protected]> | |
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(-) | |
--- | |
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': |