diff options
Diffstat (limited to 'src/ParserCmdline.cpp')
-rw-r--r-- | src/ParserCmdline.cpp | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/src/ParserCmdline.cpp b/src/ParserCmdline.cpp index 9d46bf4..98140de 100644 --- a/src/ParserCmdline.cpp +++ b/src/ParserCmdline.cpp @@ -109,7 +109,20 @@ bool parse_cmdline(char **argv, vector<DabService*>::iterator service = ensemble->services.end(); dabProtection* protection = NULL; - dabInputOperations operations; + // Yes, this is ugly, but it suppresses warnings + dabInputOperations operations = { + NULL, + NULL, + NULL, + NULL, + NULL, + NULL, + NULL, + NULL, + NULL, + NULL, + NULL + }; // Default ensemble parameters: ensemble->lto = 0; @@ -566,7 +579,7 @@ bool parse_cmdline(char **argv, int level; if (optarg == NULL) { etiLog.log(error, - "Missing parameter for option -P\n"); + "Missing parameter for option -p\n"); printUsage(progName); goto EXIT; } |