[MonoError] Fix the definition of init_error.
authorRodrigo Kumpera <kumpera@gmail.com>
Thu, 21 Jan 2016 21:13:21 +0000 (16:13 -0500)
committerRodrigo Kumpera <kumpera@gmail.com>
Thu, 21 Jan 2016 21:13:21 +0000 (16:13 -0500)
mono/utils/mono-error-internals.h

index af7205cd37282d24cf1d7f64b021a2dbe5538456..774203d343c852455a64f8f9c425684ba2f89bda 100644 (file)
@@ -25,6 +25,7 @@ typedef struct {
 
 #define error_init(error) do { \
        (error)->error_code = MONO_ERROR_NONE;  \
+       (error)->flags = 0;     \
 } while (0);
 
 #define is_ok(error) ((error)->error_code == MONO_ERROR_NONE)