Move auto var to outer scope, because its storage is used beyond the inner scope
authorKen Raeburn <raeburn@mit.edu>
Thu, 15 May 2008 23:08:23 +0000 (23:08 +0000)
committerKen Raeburn <raeburn@mit.edu>
Thu, 15 May 2008 23:08:23 +0000 (23:08 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20320 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/gssapi/mechglue/g_dsp_status.c

index be6bc8032f3330de4281140973dbf826865ba46f..acf3bbbb478e425df64081e107da66c97626967e 100644 (file)
@@ -53,6 +53,7 @@ gss_buffer_t          status_string;
 {
     gss_OID            mech_type = (gss_OID) req_mech_type;
     gss_mechanism      mech;
+    gss_OID_desc       m_oid = { 0, 0 };
 
     if (minor_status != NULL)
        *minor_status = 0;
@@ -96,7 +97,6 @@ gss_buffer_t          status_string;
     }
     {
        int err;
-       gss_OID_desc m_oid = { 0, 0 };
        OM_uint32 m_status = 0, status;
 
        err = gssint_mecherrmap_get(status_value, &m_oid, &m_status);