Fix build failure (unused variable)

This commit is contained in:
William Wennerström
2020-12-09 19:37:35 +01:00
parent 073412b845
commit a1486012d2

View File

@@ -4922,8 +4922,8 @@ cmd_sendfile(ProfWin* window, const char* const command, gchar** args)
goto out; goto out;
} }
#ifdef HAVE_OMEMO
if (omemo_enabled) { if (omemo_enabled) {
#ifdef HAVE_OMEMO
char* err = NULL; char* err = NULL;
alt_scheme = OMEMO_AESGCM_URL_SCHEME; alt_scheme = OMEMO_AESGCM_URL_SCHEME;
alt_fragment = _add_omemo_stream(&fd, &fh, &err); 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); win_println(window, THEME_ERROR, "-", err);
goto out; goto out;
} }
}
#endif #endif
}
HTTPUpload* upload = malloc(sizeof(HTTPUpload)); HTTPUpload* upload = malloc(sizeof(HTTPUpload));
upload->window = window; upload->window = window;