From 027b7fe9575174475d29a147323d513a520e135c Mon Sep 17 00:00:00 2001 From: Michael Santos Date: Sat, 28 Oct 2023 07:58:13 -0400 Subject: [PATCH] message: remove variable reinitialization --- src/message.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/message.c b/src/message.c index e5684c8..cc4af82 100644 --- a/src/message.c +++ b/src/message.c @@ -1,4 +1,4 @@ -/* Copyright (c) 2019, Michael Santos +/* Copyright (c) 2019-2023, Michael Santos * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above @@ -16,18 +16,18 @@ int handle_message(xmpp_conn_t *const conn, xmpp_stanza_t *const stanza, void *const userdata) { - xmpp_stanza_t *child = NULL; + xmpp_stanza_t *child; xmppipe_state_t *state = userdata; char *message = NULL; - const char *type = NULL; - const char *from = NULL; - const char *to = NULL; + const char *type; + const char *from; + const char *to; const char *ns; - char *etype = NULL; - char *efrom = NULL; - char *eto = NULL; + char *etype; + char *efrom; + char *eto; char *emessage = NULL; char *symbol = "m";