2009-10-30 Marcus Brinkmann <marcus@g10code.de>
[gpgme.git] / src / version.c
index b2d795abc6cfd8c0028d6858ae31670db2158769..e5d7c3fc24095b228835bdcea59f547c77b99863 100644 (file)
@@ -193,7 +193,7 @@ gpgme_check_version (const char *req_version)
   do_subsystem_inits ();
 
   /* Catch-22: We need to get at least the debug subsystem ready
-     before using the tarce facility.  If we won't the tarce would
+     before using the trace facility.  If we won't the trace would
      automagically initialize the debug system with out the locks
      being initialized and missing the assuan log level setting. */
   TRACE2 (DEBUG_INIT, "gpgme_check_version: ", 0,
@@ -216,14 +216,15 @@ gpgme_check_version_internal (const char *req_version,
 {
   const char *result;
 
-  TRACE2 (DEBUG_INIT, "gpgme_check_version_internal: ", 0,
-         "req_version=%s, offset_sig_validity=%i",
-         req_version ? req_version : "(null)", offset_sig_validity);
-
   result = gpgme_check_version (req_version);
   if (result == NULL)
     return result;
 
+  /* Catch-22, see above.  */
+  TRACE2 (DEBUG_INIT, "gpgme_check_version_internal: ", 0,
+         "req_version=%s, offset_sig_validity=%i",
+         req_version ? req_version : "(null)", offset_sig_validity);
+
   if (offset_sig_validity != offsetof (struct _gpgme_signature, validity))
     {
       TRACE1 (DEBUG_INIT, "gpgme_check_version_internal: ", 0,