diff options
Diffstat (limited to '')
-rw-r--r-- | src/gammad.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gammad.c b/src/gammad.c index 54d2109..78318f6 100644 --- a/src/gammad.c +++ b/src/gammad.c @@ -70,7 +70,7 @@ int main(int argc, char** argv) struct output* outputs = NULL; size_t i, j, n, n0, crtcs_n = 0; - argv0 = argv[0]; + argv0 = argc ? argv[0] : "gammad"; memset(&site, 0, sizeof(site)); |