From 04a2637f23a9d2b1aee83e364450a02377b44cbc Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Fri, 1 Jan 2016 08:39:41 +0100 Subject: small improvements and cleanup MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/satd-run.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'src/satd-run.c') 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 + * Copyright © 2015, 2016 Mattias Andrée * * 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) { -- cgit v1.2.3-70-g09d2