Fix local copy of g_strcmp0
This commit is contained in:
parent
1a69bc9d2d
commit
2b463946a8
1 changed files with 3 additions and 1 deletions
|
@ -11,6 +11,8 @@
|
||||||
|
|
||||||
#include "compat.h"
|
#include "compat.h"
|
||||||
|
|
||||||
|
#include <string.h>
|
||||||
|
|
||||||
#if !GLIB_CHECK_VERSION(2, 16, 0)
|
#if !GLIB_CHECK_VERSION(2, 16, 0)
|
||||||
|
|
||||||
/* Glib string function
|
/* Glib string function
|
||||||
|
@ -21,7 +23,7 @@ g_strcmp0 (const gchar* string1,
|
||||||
const gchar* string2)
|
const gchar* string2)
|
||||||
{
|
{
|
||||||
if (!string1)
|
if (!string1)
|
||||||
return -(str1 != str2);
|
return -(string1 != string2);
|
||||||
if (!string2)
|
if (!string2)
|
||||||
return string1 != string2;
|
return string1 != string2;
|
||||||
return strcmp (string1, string2);
|
return strcmp (string1, string2);
|
||||||
|
|
Loading…
Reference in a new issue