mirror of
https://github.com/simon987/sist2.git
synced 2025-04-16 00:46:43 +00:00
Set default tagline when none is specified
This commit is contained in:
parent
6a48b219e6
commit
f31f138f2e
@ -366,6 +366,10 @@ int web_args_validate(web_args_t *args, int argc, const char **argv) {
|
||||
args->lang = DEFAULT_LANG;
|
||||
}
|
||||
|
||||
if (args->tagline == NULL) {
|
||||
args->tagline = DEFAULT_TAGLINE;
|
||||
}
|
||||
|
||||
if (strlen(args->lang) != 2) {
|
||||
fprintf(stderr, "Invalid --lang value, see usage\n");
|
||||
return 1;
|
||||
|
Loading…
x
Reference in New Issue
Block a user