Correct - handling.

Reported by:	pkg-fallout
X-MFC-with:	r282318
This commit is contained in:
Xin LI 2015-05-01 22:43:26 +00:00
parent dde01df167
commit 6f32f49c02

View File

@ -57,6 +57,9 @@ soelim_fopen(const char *name)
char path[MAXPATHLEN];
size_t i;
if (strcmp(name, "-") == 0)
return (stdin);
if ((f = fopen(name, "r")) != NULL)
return (f);