]> git.sesse.net Git - betaftpd/blobdiff - ftpd.c
Fixed a compile error with --disable-upload.
[betaftpd] / ftpd.c
diff --git a/ftpd.c b/ftpd.c
index a7234f8789dd073182e1fc019de00a24f8683cdb..7d52ba3d234da84a6f699aecc1aced981faf1d56 100644 (file)
--- a/ftpd.c
+++ b/ftpd.c
@@ -446,7 +446,9 @@ struct ftran *alloc_new_ftran(const int sock, const struct conn * const c)
 #endif
 
        f->dir_listing = 0;
+#if WANT_UPLOAD
        f->upload = 0;
+#endif
        return f;
 }