[Pkg-privacy-commits] [irssi-plugin-otr] 78/267: Merged patch from cam0 to upstream to remove issue 6

Ximin Luo infinity0 at moszumanska.debian.org
Sat Aug 22 12:26:20 UTC 2015


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

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

commit b80442264fbc1a47012c730fc15fa2b85ac3e3f9
Author: DrWhax <drwhax at gmail.com>
Date:   Mon Oct 31 00:07:03 2011 +0100

    Merged patch from cam0 to upstream to remove issue 6
---
 otr_key.c | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/otr_key.c b/otr_key.c
index 85e137f..416320f 100644
--- a/otr_key.c
+++ b/otr_key.c
@@ -140,7 +140,8 @@ void keygen_run(IOUSTATE *ioustate, const char *accname)
 	int ret;
 	int fds[2];
 	char *filename = g_strconcat(get_client_config_dir(),TMPKEYFILE,NULL);
-	char *dir = dirname(g_strdup(filename));
+	char *filenamedup = g_strdup(filename);
+	char *dir = dirname(filenamedup);
 
 	if (kg_st.status!=KEYGEN_NO) {
 		if (strcmp(accname,kg_st.accountname)!=0)
@@ -153,13 +154,13 @@ void keygen_run(IOUSTATE *ioustate, const char *accname)
 		if (g_mkdir(dir,S_IRWXU)) {
 			otr_noticest(TXT_KG_ABORTED_DIR,
 				     accname,dir,strerror(errno));
-			g_free(dir);
+			g_free(filenamedup);
 			g_free(filename);
 			return;
 		} else
 			otr_noticest(TXT_KG_MKDIR,dir);
 	}
-	g_free(dir);
+	g_free(filenamedup);
 
 	if (pipe(fds) != 0) {
 		otr_noticest(TXT_KG_PIPE,

-- 
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