diff options
author | Michael Roth <mdroth@linux.vnet.ibm.com> | 2011-08-11 15:38:11 -0500 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2011-08-21 18:27:34 -0500 |
commit | 8f4774789947bc4bc4c8d026a289fe980d3d2ee1 (patch) | |
tree | d2e69a563adfaa9eaac9e4bbc13c8ef0220e61a6 | |
parent | 3a130f4ef07f4532500473aeab43c86a3c2991c8 (diff) |
guest agent: remove g_strcmp0 usage
g_strcmp0 isn't in all version of glib 2.0, so don't use it to avoid
build breakage on older distros.
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
-rw-r--r-- | qemu-ga.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -146,7 +146,7 @@ static void ga_log(const gchar *domain, GLogLevelFlags level, } level &= G_LOG_LEVEL_MASK; - if (g_strcmp0(domain, "syslog") == 0) { + if (domain && strcmp(domain, "syslog") == 0) { syslog(LOG_INFO, "%s: %s", level_str, msg); } else if (level & s->log_level) { g_get_current_time(&time); |