[vte/vte-next: 122/223] vteapp: Clear error before use



commit 894aba68a66d52c6e6287dcc4e82b7ce9c54b890
Author: Christian Persch <chpe gnome org>
Date:   Thu Jun 9 17:46:01 2011 +0200

    vteapp: Clear error before use

 src/vteapp.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/vteapp.c b/src/vteapp.c
index e662bf6..4bbf50b 100644
--- a/src/vteapp.c
+++ b/src/vteapp.c
@@ -577,6 +577,7 @@ add_dingus (VteTerminal *terminal,
         int id, i;
 
         for (i = 0; dingus[i]; ++i) {
+                error = NULL;
                 if (!(regex = g_regex_new(dingus[i], G_REGEX_OPTIMIZE, 0, &error))) {
                         g_warning("Failed to compile regex '%s': %s\n",
                                   dingus[i], error->message);



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