]> git.ipfire.org Git - thirdparty/open-vm-tools.git/commitdiff
Fix log error path.
authorVMware, Inc <>
Wed, 26 Jan 2011 02:00:10 +0000 (18:00 -0800)
committerMarcelo Vanzin <mvanzin@vmware.com>
Wed, 26 Jan 2011 02:00:10 +0000 (18:00 -0800)
I can't hit the crash, but the code looks pretty wrong. Call the right
function in the log error path.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
open-vm-tools/libvmtools/vmtoolsLog.c

index 77c0972515693ab3199b00e27771d2e3d88f8e6a..de32cdd5169d44c5211347cc88f22d4a7d3cb379 100644 (file)
@@ -351,8 +351,8 @@ VMToolsLog(const gchar *domain,
           * message. Use the error handler to do it, and ignore any
           * errors.
           */
-         VMToolsError(domain, level | G_LOG_FLAG_RECURSION, message,
-                      gErrorData, VMToolsError);
+         gErrorData->logfn(domain, level | G_LOG_FLAG_RECURSION, msg,
+                           gErrorData, VMToolsError);
       }
       g_free(msg);
    }