about summary refs log tree commit homepage
diff options
context:
space:
mode:
-rw-r--r--mwrap_httpd.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/mwrap_httpd.h b/mwrap_httpd.h
index 6d40d6c..bfa723d 100644
--- a/mwrap_httpd.h
+++ b/mwrap_httpd.h
@@ -429,8 +429,10 @@ static off_t write_loc_name(FILE *fp, const struct src_loc *l)
                 free(s);
         }
         off_t end = ftello(fp);
-        if (end < 0)
+        if (end < 0) {
+                fprintf(stderr, "ftello: %m\n");
                 return end;
+        }
         return end - beg;
 }