From 74b737c89d76688d0b9848d43e435bb797973c61 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Fri, 3 Apr 2015 17:43:36 +0200 Subject: m MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/exec-as.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/exec-as.c b/src/exec-as.c index d6c4b15..8224cff 100644 --- a/src/exec-as.c +++ b/src/exec-as.c @@ -27,12 +27,12 @@ int main(int argc, char** argv) if (argc < 3) { - fprintf(stderr, "%s: %s", execname, + fprintf(stderr, "%s: %s", argc ? argv[0] : "exec-as", "Too few arguments, you need atleast " "the file to run and its argv[0]."); goto fail; } - + execname = argv[0]; file = argv[1]; -- cgit v1.2.3-70-g09d2