summaryrefslogtreecommitdiff
path: root/src/tx-option.cpp
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhosting.net>2023-12-17 14:18:48 +0100
committerJörg Frings-Fürst <debian@jff-webhosting.net>2023-12-17 14:18:48 +0100
commiteece9692d707ccb20356ec06955f8308c4e59ca7 (patch)
tree55186434884960d25d11736c8f846876d568fa08 /src/tx-option.cpp
parent987942a206ef0f2342bf81d5de6432c6af42b7e7 (diff)
New upstream version 4.19upstream/4.19
Diffstat (limited to 'src/tx-option.cpp')
-rw-r--r--src/tx-option.cpp6
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;
}