diff options
author | Mattias Andrée <maandree@member.fsf.org> | 2016-01-01 08:39:41 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@member.fsf.org> | 2016-01-01 08:39:51 +0100 |
commit | 04a2637f23a9d2b1aee83e364450a02377b44cbc (patch) | |
tree | 99716598a1990112e2476abd5f0aec2c8440ee6d /src/satd-run.c | |
parent | fix the last bit (diff) | |
download | sat-04a2637f23a9d2b1aee83e364450a02377b44cbc.tar.gz sat-04a2637f23a9d2b1aee83e364450a02377b44cbc.tar.bz2 sat-04a2637f23a9d2b1aee83e364450a02377b44cbc.tar.xz |
small improvements and cleanup
Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
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) { |