aboutsummaryrefslogtreecommitdiff
path: root/tests/chargen.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/chargen.c')
-rw-r--r--tests/chargen.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/tests/chargen.c b/tests/chargen.c
index a3b3290..75d096c 100644
--- a/tests/chargen.c
+++ b/tests/chargen.c
@@ -78,3 +78,3 @@ main (int argc, char **argv)
{
- perror (argv[0]);
+ perror (argv[1]);
return 64;
@@ -83,4 +83,11 @@ main (int argc, char **argv)
fd = url_connect (url, NULL);
+ if (fd == -1)
+ return 1;
fp = fdopen (fd, "r");
-
+ if (!fp)
+ {
+ perror ("fdopen");
+ return 1;
+ }
+
first = next_char (0);

Return to:

Send suggestions and report system problems to the System administrator.