[yelp] Fix crash on opening any .info doc
- From: Shaun McCance <shaunm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [yelp] Fix crash on opening any .info doc
- Date: Mon, 5 Sep 2011 20:53:17 +0000 (UTC)
commit 976c2f542b6ff3f22d2af8731fed30190a80226a
Author: Edward Sheldrake <ejsheldrake gmail com>
Date: Tue Aug 30 20:55:49 2011 +0100
Fix crash on opening any .info doc
g_hash_table_lookup_extended was being called with an incorrect argument.
libyelp/yelp-info-parser.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/libyelp/yelp-info-parser.c b/libyelp/yelp-info-parser.c
index e16b6be..559fbb2 100644
--- a/libyelp/yelp-info-parser.c
+++ b/libyelp/yelp-info-parser.c
@@ -611,11 +611,11 @@ get_value_after (const char* source, const char *key)
static int
node2page (GHashTable *nodes2pages, char *node)
{
- gint page;
+ gpointer p;
if (g_hash_table_lookup_extended (nodes2pages, node,
- NULL, (gpointer*) &page))
- return page;
+ NULL, &p))
+ return GPOINTER_TO_INT(p);
/* This shouldn't happen: we should only ever have to look up pages
* that exist. */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]