(output_skeleton): Call xfopen instead of duplicating xfopen's body.

This commit is contained in:
Paul Eggert
2002-11-15 01:28:40 +00:00
parent 970785f1a0
commit 93ba6bf344

View File

@@ -526,10 +526,7 @@ output_skeleton (void)
strcpy (full_path, pkgdatadir);
full_path[pkgdatadirlen] = '/';
strcpy (full_path + pkgdatadirlen + 1, m4sugar);
in = fopen (full_path, "r");
if (! in)
error (EXIT_FAILURE, errno, "%s", full_path);
xfclose (in);
xfclose (xfopen (full_path, "r"));
strcpy (full_path + pkgdatadirlen + 1, skeleton);
/* Create an m4 subprocess connected to us via two pipes. */