aboutsummaryrefslogtreecommitdiffstats
path: root/src/gammad.c
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2016-07-10 22:15:24 +0200
committerMattias Andrée <maandree@kth.se>2016-07-10 22:15:24 +0200
commita7f0392ccb88f7faa7ca3f15d4ccfcf637896d1d (patch)
tree000db8e2281e951d432b5da7ae212dfc65c6ceb6 /src/gammad.c
parentAdd makefile (diff)
downloadcoopgammad-a7f0392ccb88f7faa7ca3f15d4ccfcf637896d1d.tar.gz
coopgammad-a7f0392ccb88f7faa7ca3f15d4ccfcf637896d1d.tar.bz2
coopgammad-a7f0392ccb88f7faa7ca3f15d4ccfcf637896d1d.tar.xz
Fix warnings (and two errors)
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-rw-r--r--src/gammad.c2
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));