[gnome-documents] miner: return an empty string when no graph is passed into
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-documents] miner: return an empty string when no graph is passed into
- Date: Thu, 13 Oct 2011 18:14:00 +0000 (UTC)
commit 7d2eaeacdfd5084b80cec53eb887e9ff7c892690
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Thu Oct 13 14:12:55 2011 -0400
miner: return an empty string when no graph is passed into
Instead of NULL, which doesn't play nice when the string is inserted
into a printf(), as it's the case for the graph string here.
src/miner/gd-gdata-miner.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/miner/gd-gdata-miner.c b/src/miner/gd-gdata-miner.c
index 208bbfc..ba2743f 100644
--- a/src/miner/gd-gdata-miner.c
+++ b/src/miner/gd-gdata-miner.c
@@ -44,7 +44,7 @@ struct _GdGDataMinerPrivate {
static gchar *
_tracker_utils_format_into_graph (const gchar *graph)
{
- return (graph != NULL) ? g_strdup_printf ("INTO <%s> ", graph) : NULL;
+ return (graph != NULL) ? g_strdup_printf ("INTO <%s> ", graph) : g_strdup ("");
}
static gboolean
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]