[Pkg-privacy-commits] [irssi-plugin-otr] 04/18: Fix my broken NULL pointer check (and some segfaults).

Antoine Beaupré anarcat at moszumanska.debian.org
Tue Mar 29 14:20:54 UTC 2016


This is an automated email from the git hooks/post-receive script.

anarcat pushed a commit to branch debian
in repository irssi-plugin-otr.

commit 3af65619c4870bc15ca19bde48216f166bcbc859
Author: Lasse Karkkainen <tronic+ndrm at trn.iki.fi>
Date:   Thu May 29 13:10:53 2014 +0300

    Fix my broken NULL pointer check (and some segfaults).
---
 src/otr.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/otr.c b/src/otr.c
index f0562f5..9c0d25f 100644
--- a/src/otr.c
+++ b/src/otr.c
@@ -365,7 +365,7 @@ int otr_send(SERVER_REC *irssi, const char *msg, const char *to, char **otr_msg)
 	}
 	
 	/* Modify some libotr messages (OTR init in particular) to work better with IRC. */
-	if (otr_msg) utils_escape_message(*otr_msg);
+	if (*otr_msg) utils_escape_message(*otr_msg);
 
 	IRSSI_DEBUG("Message sent...");
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-privacy/packages/irssi-plugin-otr.git



More information about the Pkg-privacy-commits mailing list