From: Christian Dywan Date: Thu, 22 Jan 2009 21:59:47 +0000 (+0100) Subject: Fix local copy of g_strcmp0 X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2b463946a859f67018160066e246af484f5c68d1;p=midori Fix local copy of g_strcmp0 --- diff --git a/midori/compat.c b/midori/compat.c index 20fdc2df..6eb1c96c 100644 --- a/midori/compat.c +++ b/midori/compat.c @@ -11,6 +11,8 @@ #include "compat.h" +#include + #if !GLIB_CHECK_VERSION(2, 16, 0) /* Glib string function @@ -21,7 +23,7 @@ g_strcmp0 (const gchar* string1, const gchar* string2) { if (!string1) - return -(str1 != str2); + return -(string1 != string2); if (!string2) return string1 != string2; return strcmp (string1, string2);