From 7df3f33f3c644e53577b53fed433bfe9a4ff0715 Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Sat, 15 Aug 2020 18:20:23 +0200 Subject: Error handling ok --- src/m_argv.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/m_argv.c') diff --git a/src/m_argv.c b/src/m_argv.c index 1e23bae..0c32e3b 100644 --- a/src/m_argv.c +++ b/src/m_argv.c @@ -15,6 +15,7 @@ #include #include +#include "f_fail.h" #include "d_define.h" #include "m_comm.h" #include "m_loop.h" @@ -44,7 +45,7 @@ uint8_t else { if ((fd = open(*(argv + 1), O_RDONLY)) < 0) - f_open_file(msh); + f_open_file(*(argv + 1), msh); msh->ret = m_loop(fd, msh); close(fd); } -- cgit v1.2.3