1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-12-04 14:46:46 -05:00
profanity/src
Steffen Jaeckel d8eea87f60 Fix -Werror=maybe-uninitialized
When compiling with `CFLAGS="-O2 -fexceptions -Wp,-D_FORTIFY_SOURCE=2"`, as
done per default when creating an AUR package e.g. via `makepkg`, this
error is produced.

Refactor `stanza_create_mam_iq()` in order to fix said warning-turned-into-
an-error.

Edit by jubalh:
I still think the error message is a false positive. But this commit improves the
code a lot.

Signed-off-by: Steffen Jaeckel <jaeckel-floss@eyet-services.de>
2023-05-12 08:39:29 +02:00
..
command Merge branch 'master' into cleanup/gchar-char 2023-05-11 08:45:46 +02:00
config Merge branch 'master' into cleanup/gchar-char 2023-05-11 08:45:46 +02:00
event Merge branch 'master' into cleanup/gchar-char 2023-05-11 08:45:46 +02:00
omemo Cleanup: gchar as gchar instead of char 2023-05-04 16:15:09 +02:00
otr User proper ellipsis char 2023-04-09 12:19:18 +02:00
pgp Cleanup p_ox_gpg_decrypt 2023-04-13 17:17:25 +02:00
plugins Cleanup: gchar as gchar instead of char 2023-05-04 16:15:09 +02:00
tools Fix memleaks & more auto-free 2023-05-12 08:39:20 +02:00
ui Remove VLA & calm Valgrind 2023-05-12 08:39:23 +02:00
xmpp Fix -Werror=maybe-uninitialized 2023-05-12 08:39:29 +02:00
chatlog.c Cleanup: gchar as gchar instead of char 2023-05-04 16:15:09 +02:00
chatlog.h Split log.c into log.c and chatlog.c 2022-06-28 20:08:38 +02:00
common.c Cleanup: gchar as gchar instead of char 2023-05-04 16:15:09 +02:00
common.h Fix -Werror=maybe-uninitialized 2023-05-12 08:39:29 +02:00
database.c Improve const-correctness of API 2023-05-12 08:39:19 +02:00
database.h Improve const-correctness of API 2023-05-12 08:39:19 +02:00
log.c Fix typos and update codespell configuration 2023-04-03 13:25:25 +01:00
log.h minor changes 2023-01-18 20:02:46 +01:00
main.c Cleanup: gchar as gchar instead of char 2023-05-04 16:15:09 +02:00
profanity.c Cleanup: gchar as gchar instead of char 2023-05-04 16:15:09 +02:00
profanity.h Update copyright year 2023-01-10 10:37:25 +01:00