[Midnightbsd-cvs] src [6664] trunk/lib/libfetch/file.c: style(9)
laffer1 at midnightbsd.org
laffer1 at midnightbsd.org
Thu Jun 12 22:03:56 EDT 2014
Revision: 6664
http://svnweb.midnightbsd.org/src/?rev=6664
Author: laffer1
Date: 2014-06-12 22:03:56 -0400 (Thu, 12 Jun 2014)
Log Message:
-----------
style(9)
Modified Paths:
--------------
trunk/lib/libfetch/file.c
Modified: trunk/lib/libfetch/file.c
===================================================================
--- trunk/lib/libfetch/file.c 2014-06-13 02:01:38 UTC (rev 6663)
+++ trunk/lib/libfetch/file.c 2014-06-13 02:03:56 UTC (rev 6664)
@@ -50,12 +50,15 @@
f = fopen(u->doc, "r");
- if (f == NULL)
+ if (f == NULL) {
fetch_syserr();
+ return (NULL);
+ }
if (u->offset && fseeko(f, u->offset, SEEK_SET) == -1) {
fclose(f);
fetch_syserr();
+ return (NULL);
}
fcntl(fileno(f), F_SETFD, FD_CLOEXEC);
@@ -78,12 +81,15 @@
else
f = fopen(u->doc, "w+");
- if (f == NULL)
+ if (f == NULL) {
fetch_syserr();
+ return (NULL);
+ }
if (u->offset && fseeko(f, u->offset, SEEK_SET) == -1) {
fclose(f);
fetch_syserr();
+ return (NULL);
}
fcntl(fileno(f), F_SETFD, FD_CLOEXEC);
More information about the Midnightbsd-cvs
mailing list