[Xfce4-commits] <midori:master> Double check meta values before trying to convert to a long
Christian Dywan
noreply at xfce.org
Mon Nov 30 19:56:02 CET 2009
Updating branch refs/heads/master
to 88778948ead188a2c731404b2796f8b084b762e1 (commit)
from 2f186056564bf2f0f1ba04d08e46589aa722cfeb (commit)
commit 88778948ead188a2c731404b2796f8b084b762e1
Author: Christian Dywan <christian at twotoasts.de>
Date: Mon Nov 30 19:52:42 2009 +0100
Double check meta values before trying to convert to a long
katze/katze-item.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/katze/katze-item.c b/katze/katze-item.c
index a63afd4..80f835e 100644
--- a/katze/katze-item.c
+++ b/katze/katze-item.c
@@ -590,7 +590,7 @@ katze_item_get_meta_integer (KatzeItem* item,
if (g_str_has_prefix (key, "midori:"))
key = &key[7];
if (g_hash_table_lookup_extended (item->metadata, key, NULL, &value))
- return g_ascii_strtoll (value, NULL, 0);
+ return value ? g_ascii_strtoll (value, NULL, 0) : -1;
return -1;
}
More information about the Xfce4-commits
mailing list