Fix a compiler warning about mixing of code and declarations
authorPavan Deolasee <[email protected]>
Mon, 14 Mar 2016 11:43:26 +0000 (17:13 +0530)
committerPavan Deolasee <[email protected]>
Mon, 14 Mar 2016 11:43:26 +0000 (17:13 +0530)
src/gtm/main/main.c

index 8186770ddd8688a86af330e2ab445b029aa1958b..3f56bfd65fb6132e83dd96c98c7e4c653c1cade4 100644 (file)
@@ -650,9 +650,10 @@ main(int argc, char *argv[])
        }
        else
        {
-               GTM_MutexLockAcquire(&control_lock);
                GTM_RestoreContext restoreContext;
 
+               GTM_MutexLockAcquire(&control_lock);
+
                ctlf = fopen(GTMControlFile, "r");
 
                /*