mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-26 22:16:22 +00:00
Ensure instances of auto types are initialized
Follow-up of #1913 Signed-off-by: Steffen Jaeckel <jaeckel-floss@eyet-services.de>
This commit is contained in:
@@ -126,7 +126,7 @@ avatar_set(const char* path)
|
||||
pixbuf = new_pixbuf;
|
||||
}
|
||||
|
||||
auto_gchar gchar* img_data;
|
||||
auto_gchar gchar* img_data = NULL;
|
||||
gsize len = -1;
|
||||
|
||||
if (!gdk_pixbuf_save_to_buffer(pixbuf, &img_data, &len, "png", &err, NULL)) {
|
||||
|
||||
@@ -98,6 +98,20 @@ static xmpp_stanza_t* _ox_openpgp_signcrypt(xmpp_ctx_t* ctx, const char* const t
|
||||
|
||||
static GHashTable* pubsub_event_handlers;
|
||||
|
||||
gchar*
|
||||
get_display_name(const ProfMessage* const message, int* flags)
|
||||
{
|
||||
auto_char char* barejid = connection_get_barejid();
|
||||
|
||||
if (g_strcmp0(barejid, message->from_jid->barejid) == 0) {
|
||||
return g_strdup("me");
|
||||
} else {
|
||||
if (flags)
|
||||
*flags = NO_ME;
|
||||
return roster_get_msg_display_name(message->from_jid->barejid, message->from_jid->resourcepart);
|
||||
}
|
||||
}
|
||||
|
||||
static gboolean
|
||||
_handled_by_plugin(xmpp_stanza_t* const stanza)
|
||||
{
|
||||
|
||||
@@ -1350,7 +1350,7 @@ _vcard_photo_result(xmpp_stanza_t* const stanza, void* userdata)
|
||||
}
|
||||
|
||||
if (data->open) {
|
||||
auto_gcharv gchar** argv;
|
||||
auto_gcharv gchar** argv = NULL;
|
||||
gint argc;
|
||||
|
||||
auto_gchar gchar* cmdtemplate = prefs_get_string(PREF_VCARD_PHOTO_CMD);
|
||||
|
||||
@@ -317,4 +317,5 @@ void form_reset_autocompleters(DataForm* form);
|
||||
|
||||
void publish_user_mood(const char* const mood, const char* const text);
|
||||
|
||||
gchar* get_display_name(const ProfMessage* const message, int* flags);
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user