Compile fixes
authorDick Porter <dick@acm.org>
Thu, 9 Sep 2004 10:44:30 +0000 (10:44 -0000)
committerDick Porter <dick@acm.org>
Thu, 9 Sep 2004 10:44:30 +0000 (10:44 -0000)
svn path=/trunk/mono/; revision=33636

mono/interpreter/interp.c

index 8f20e2d080422f62b2971515641fef6422dc03a7..bde0ebf35e78e330d2a59cd4e5855fcdd0b5156f 100644 (file)
@@ -672,12 +672,14 @@ static void
 interp_walk_stack (MonoStackWalk func, gpointer user_data)
 {
        ThreadContext *context = TlsGetValue (thread_context_id);
-       if (!context) return;
-               
-       MonoInvocation *frame = context->current_frame;
+       MonoInvocation *frame;
        int il_offset;
        MonoMethodHeader *hd;
 
+       if (!context) return;
+               
+       frame = context->current_frame;
+
        while (frame) {
                gboolean managed = FALSE;
                MonoMethod *method = frame->runtime_method->method;