]> diplodocus.org Git - nmh/commitdiff
Make sure we return the descriptor from the file handle. Noted by
authorKen Hornstein <kenh@pobox.com>
Wed, 23 Aug 2017 16:08:24 +0000 (12:08 -0400)
committerKen Hornstein <kenh@pobox.com>
Wed, 23 Aug 2017 16:08:24 +0000 (12:08 -0400)
Ralph Corderoy.

uip/mhparse.c

index 0eb474a..4a031b0 100644 (file)
@@ -2892,7 +2892,7 @@ openURL (CT ct, char **file)
 
     fseeko(ce->ce_fp, 0, SEEK_SET);
     *file = ce->ce_file;
-    return fd;
+    return fileno(ce->ce_fp);
 }