[libpeas] Use the correct hook when printing error message



commit eb3c046ff3c9e3fc6fbf5621b776b14ec6088330
Author: Garrett Regier <garrettregier gmail com>
Date:   Sun Aug 21 12:01:04 2011 -0700

    Use the correct hook when printing error message

 tests/testing-util/testing-util.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/tests/testing-util/testing-util.c b/tests/testing-util/testing-util.c
index afb6280..b5ea4c3 100644
--- a/tests/testing-util/testing-util.c
+++ b/tests/testing-util/testing-util.c
@@ -255,6 +255,7 @@ testing_util_pop_log_hooks (void)
 
   if (unhit_hooks->len == 1)
     {
+      hook = g_ptr_array_index (unhit_hooks, 0);
       g_error ("Log hook was not triggered: '%s'", hook->pattern);
     }
   else if (unhit_hooks->len > 1)



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]