/pidgin/main: f1429080ee20: Clarify GKeyFile error condition usi...

Mike Ruprecht cmaiku at gmail.com
Sat Jan 23 14:06:34 EST 2016


Changeset: f1429080ee20501807dfca89d2d4471634c22722
Author:	 Mike Ruprecht <cmaiku at gmail.com>
Date:	 2016-01-22 02:51 -0600
Branch:	 default
URL: https://hg.pidgin.im/pidgin/main/rev/f1429080ee20

Description:

Clarify GKeyFile error condition using error enum

diffstat:

 libpurple/media/backend-fs2.c |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff --git a/libpurple/media/backend-fs2.c b/libpurple/media/backend-fs2.c
--- a/libpurple/media/backend-fs2.c
+++ b/libpurple/media/backend-fs2.c
@@ -1698,7 +1698,7 @@ create_session(PurpleMediaBackendFs2 *se
 	g_free(filename);
 
 	if (err != NULL) {
-		if (err->code == 4)
+		if (err->code == G_KEY_FILE_ERROR_NOT_FOUND)
 			purple_debug_info("backend-fs2", "Couldn't read "
 					"fs-codec.conf: %s\n",
 					err->message);



More information about the Commits mailing list