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-rm.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/satd-rm.c') diff --git a/src/satd-rm.c b/src/satd-rm.c index 435c302..d33160c 100644 --- a/src/satd-rm.c +++ b/src/satd-rm.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,8 +43,7 @@ main(int argc, char *argv[]) /* Receive and validate message. */ t (readall(SOCK_FILENO, &message, &n) || !n || message[n - 1]); - msg_argv = restore_array(message, n, NULL); - t (!msg_argv); + t (!(msg_argv = restore_array(message, n, NULL))); /* Perform action. */ for (arg = msg_argv; *arg; arg++) -- cgit v1.2.3-70-g09d2