diff options
Diffstat (limited to 'src/satd-run.c')
-rw-r--r-- | src/satd-run.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/satd-run.c b/src/satd-run.c index 9543ca4..cf3f065 100644 --- a/src/satd-run.c +++ b/src/satd-run.c @@ -1,5 +1,5 @@ /** - * Copyright © 2015 Mattias Andrée <maandree@member.fsf.org> + * Copyright © 2015, 2016 Mattias Andrée <maandree@member.fsf.org> * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), @@ -43,10 +43,7 @@ main(int argc, char *argv[]) /* Receive and validate message. */ t (readall(SOCK_FILENO, &message, &n) || (n && message[n - 1])); - if (n) { - msg_argv = restore_array(message, n, NULL); - t (!msg_argv); - } + t (n && !(msg_argv = restore_array(message, n, NULL))); /* Perform action. */ if (msg_argv) { |