diff options
author | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2024-06-30 15:25:45 +0200 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2024-06-30 15:25:45 +0200 |
commit | dcf1541c4bf2732f0e31c24c4b368da930f6eac2 (patch) | |
tree | 8548c73cc376d31e5d89df9b4121638204c8868b /src/tx-option.cpp | |
parent | 2543e1e9838e03adb7f4a811815d34ccf65a3026 (diff) | |
parent | 5c5ce3e94f43e46a1e0420f1356abca7d3672c34 (diff) |
Merge branch 'release/debian/4.23-1'debian/4.23-1
Diffstat (limited to 'src/tx-option.cpp')
-rw-r--r-- | src/tx-option.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/tx-option.cpp b/src/tx-option.cpp index b70110f..248ab7c 100644 --- a/src/tx-option.cpp +++ b/src/tx-option.cpp @@ -12,8 +12,10 @@ static const struct HXoption t[] = { HXOPT_TABLEEND, }; -int main(int argc, const char **argv) +int main(int argc, char **argv) { - HX_getopt(t, &argc, &argv, HXOPT_USAGEONERR); + if (HX_getopt(t, &argc, &argv, HXOPT_USAGEONERR) != HXOPT_ERR_SUCCESS) + return EXIT_FAILURE; + HX_zvecfree(argv); return EXIT_SUCCESS; } |