From 893fdde961d38cab0a81071013171d89880585fc Mon Sep 17 00:00:00 2001 From: Michael Czigler <37268479+mcpcpc@users.noreply.github.com> Date: Fri, 11 Sep 2020 13:55:41 -0400 Subject: fix unguarded statements --- kirc.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'kirc.c') diff --git a/kirc.c b/kirc.c index bbc2652..f87c3d9 100644 --- a/kirc.c +++ b/kirc.c @@ -242,8 +242,15 @@ main(int argc, char **argv) { } } - if (!nick) perror("Nick not specified"); return 1; - if (pipe(fd) < 0) perror("Pipe() failed"); return 1; + if (!nick) { + perror("Nick not specified"); + return 1; + } + + if (pipe(fd) < 0) { + perror("Pipe() failed"); + return 1; + } pid_t pid = fork(); -- cgit v1.2.3