diff options
author | Mikhail Zabaluev <mikhail.zabaluev@nokia.com> | 2010-06-21 16:10:31 +0300 |
---|---|---|
committer | Mikhail Zabaluev <mikhail.zabaluev@nokia.com> | 2010-06-21 16:10:31 +0300 |
commit | 7178aadaf444870c07f0cf07987f994d3b00d76f (patch) | |
tree | 95ef9d01127a986e33bdd6c5f1d1a9f97ee9ea31 | |
parent | 6ba1c2861ef095edf8cac3e6d9e0954d1a2e7417 (diff) |
Fixed a walk-off-the-end crash in debug support code
-rw-r--r-- | src/debug.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/debug.c b/src/debug.c index 5d5bec6..dc20fa5 100644 --- a/src/debug.c +++ b/src/debug.c @@ -80,7 +80,7 @@ debug_flag_to_domain (TpsipDebugFlags flag) flag_to_domains = g_hash_table_new_full (g_direct_hash, g_direct_equal, NULL, g_free); - for (i = 0; tpsip_debug_keys[i].value; i++) + for (i = 0; i < G_N_ELEMENTS(tpsip_debug_keys); i++) { GDebugKey key = (GDebugKey) tpsip_debug_keys[i]; gchar *val; |