about summary refs log tree commit diff stats
path: root/src/command/cmd_funcs.c
diff options
context:
space:
mode:
authorWilliam Wennerström <william@wstrm.dev>2020-12-09 19:37:35 +0100
committerWilliam Wennerström <william@wstrm.dev>2020-12-09 19:37:35 +0100
commita1486012d2b92bd1472b3b33e90a237fccd12576 (patch)
tree3466d1ca99b27d6bbf33a0edad92dd971412ebea /src/command/cmd_funcs.c
parent073412b8454e95efbf3ff4cee13634130986104e (diff)
downloadprofani-tty-a1486012d2b92bd1472b3b33e90a237fccd12576.tar.gz
Fix build failure (unused variable)
Diffstat (limited to 'src/command/cmd_funcs.c')
-rw-r--r--src/command/cmd_funcs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/command/cmd_funcs.c b/src/command/cmd_funcs.c
index cf826fe5..2397ccfc 100644
--- a/src/command/cmd_funcs.c
+++ b/src/command/cmd_funcs.c
@@ -4922,8 +4922,8 @@ cmd_sendfile(ProfWin* window, const char* const command, gchar** args)
         goto out;
     }
 
-#ifdef HAVE_OMEMO
     if (omemo_enabled) {
+#ifdef HAVE_OMEMO
         char* err = NULL;
         alt_scheme = OMEMO_AESGCM_URL_SCHEME;
         alt_fragment = _add_omemo_stream(&fd, &fh, &err);
@@ -4932,8 +4932,8 @@ cmd_sendfile(ProfWin* window, const char* const command, gchar** args)
             win_println(window, THEME_ERROR, "-", err);
             goto out;
         }
-    }
 #endif
+    }
 
     HTTPUpload* upload = malloc(sizeof(HTTPUpload));
     upload->window = window;