Re: [hackers] [sent] Fix cmdline argument check

From: Markus Teich <markus.teich_AT_stusta.mhn.de>
Date: Sun, 6 Mar 2016 20:53:15 +0100

Quentin Rameau wrote:
> + if (argv[0] && strcmp(argv[0], "-")) {
> + if (!(fp = fopen(argv[0], "r")))
> + die("Unable to open '%s' for reading:", argv[0]);

Heyho,

I decided to fix it a little differently, since I did not like this nested if.

--Markus
Received on Sun Mar 06 2016 - 20:53:15 CET

This archive was generated by hypermail 2.3.0 : Sun Mar 06 2016 - 21:00:20 CET