Tracker: Patches

5 Hash table problem - ID: 1860679
Last Update: Settings changed ( martin-s )

Hi,
I'm trying to get Navit running on a Windows, however, I had some issues on Osm2Navit, it turns out that the hash table key string value on line 387 is not duplicated:
g_hash_table_insert(value_hash, v, (gpointer)item.type);
which should be:
g_hash_table_insert(value_hash, g_strdup(v), (gpointer)item.type);

If the string is not duplicated, basically all keys will point to the same (latest)string value.
Regards Albert



Albert L Faber ( afaber ) - 2007-12-29 13:57:23 PST

5

Closed

None

Nobody/Anonymous

None

None

Public


Comments ( 3 )

Date: 2007-12-30 01:29:45 PST
Sender: afaber


Just saw that this happens at more places in the osm2navit.c file, please
check all the g_hash_table_insert that g_strdup is called when a string is
passed a key (or value)


Date: 2007-12-30 01:16:47 PST
Sender: afaber


Just saw that this happens at more places in the osm2navit.c file, please
check all the g_hash_table_insert that g_strdup is called when a string is
passed a key (or value)


Date: 2007-12-29 14:16:26 PST
Sender: afaber


Just saw that this happens at more places in the osm2navit.c file, please
check all the g_hash_table_insert that g_strdup is called when a string is
passed a key (or value)


Attached File

No Files Currently Attached

Changes ( 2 )

Field Old Value Date By
status_id Open 2008-01-01 14:36:18 PST martin-s
close_date - 2008-01-01 14:36:18 PST martin-s