From be0bf035c72fa3a2d2fa9bc3c9933d12f81919d7 Mon Sep 17 00:00:00 2001 From: Philipp Schafft Date: Sat, 16 Jun 2018 17:38:35 +0000 Subject: [PATCH] Update: Added comments to make code easier to understand --- src/main.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main.c b/src/main.c index 1218aabf..89ed2552 100644 --- a/src/main.c +++ b/src/main.c @@ -170,8 +170,10 @@ static int _parse_config_opts(int argc, char **argv, char *filename, size_t size background = 0; if (argc < 2) { if (filename[0] != 0) { + /* We have a default filename, so we can work with no options. */ return 1; } else { + /* We need at least a config filename. */ return -1; } }