diff options
author | Edward Sheldrake <ejsheldrake@gmail.com> | 2011-08-30 20:55:49 +0100 |
---|---|---|
committer | Shaun McCance <shaunm@gnome.org> | 2011-09-05 17:00:05 -0400 |
commit | 976c2f542b6ff3f22d2af8731fed30190a80226a (patch) | |
tree | 9d9717b01cc44d5b129f2c0096f4cc7ceea57e33 | |
parent | 06dc5defbd2abea0b631d696854254fcde3211aa (diff) | |
download | yelp-976c2f542b6ff3f22d2af8731fed30190a80226a.tar.gz |
Fix crash on opening any .info doc
g_hash_table_lookup_extended was being called with an incorrect argument.
-rw-r--r-- | 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 e16b6be5..559fbb28 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. */ |