summaryrefslogtreecommitdiff
path: root/src/tx-option.cpp
diff options
context:
space:
mode:
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;
}