aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2016-11-17 17:57:20 +0100
committerKarel Kočí <cynerd@email.cz>2016-11-17 17:57:20 +0100
commit33fcbdeef12b2831cff2dc6eee7c5b48e34d0851 (patch)
tree36fde3beca7695ab55e46910443ec25e64d55ea9 /src
parentad2a23815a49245117cadbfcb6a59dfd6fc95483 (diff)
downloadgeml-33fcbdeef12b2831cff2dc6eee7c5b48e34d0851.tar.gz
geml-33fcbdeef12b2831cff2dc6eee7c5b48e34d0851.tar.bz2
geml-33fcbdeef12b2831cff2dc6eee7c5b48e34d0851.zip
Add tests target and some fixesHEADmaster
For now only cppcheck is implemented.
Diffstat (limited to 'src')
-rw-r--r--src/args_parser.c2
-rw-r--r--src/utils.c1
2 files changed, 2 insertions, 1 deletions
diff --git a/src/args_parser.c b/src/args_parser.c
index be55e43..0de5ca2 100644
--- a/src/args_parser.c
+++ b/src/args_parser.c
@@ -26,7 +26,7 @@
#include "io.h"
const char *help_text =
- "Usage: geml [OPTIONS]... INPUT_FILE\n"
+ "Usage: geml [OPTION]... INPUT_FILE\n"
" General extendable macro language processing tool.\n"
"\n"
"Options:\n"
diff --git a/src/utils.c b/src/utils.c
index c545961..c52ed2f 100644
--- a/src/utils.c
+++ b/src/utils.c
@@ -62,6 +62,7 @@ void print_message(const char *file, const int line, enum Verbosity level, const
va_list args;
va_start(args, msg);
vfprintf(stderr, msg, args);
+ va_end(args);
fputs("\n", stderr);
}