>From 51c95a7e1f54288cb39ac3ed528cff782807a816 Mon Sep 17 00:00:00 2001
From: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Date: Tue, 31 Jan 2012 20:14:42 +1100
Subject: [PATCH] Assign a default value (clang)
To: wine-patches <wine-patches@winehq.org>

---
 dlls/advapi32/service.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/dlls/advapi32/service.c b/dlls/advapi32/service.c
index bdebc91..71bd7ae 100644
--- a/dlls/advapi32/service.c
+++ b/dlls/advapi32/service.c
@@ -755,7 +755,7 @@ SC_HANDLE WINAPI OpenSCManagerA( LPCSTR lpMachineName, LPCSTR lpDatabaseName,
 SC_HANDLE WINAPI OpenSCManagerW( LPCWSTR lpMachineName, LPCWSTR lpDatabaseName,
                                  DWORD dwDesiredAccess )
 {
-    SC_HANDLE handle;
+    SC_HANDLE handle = INVALID_HANDLE_VALUE;
     LONG r;
 
     TRACE("(%s,%s,0x%08x)\n", debugstr_w(lpMachineName),
@@ -899,7 +899,7 @@ SC_HANDLE WINAPI OpenServiceA( SC_HANDLE hSCManager, LPCSTR lpServiceName,
 SC_HANDLE WINAPI OpenServiceW( SC_HANDLE hSCManager, LPCWSTR lpServiceName,
                                DWORD dwDesiredAccess)
 {
-    SC_HANDLE handle;
+    SC_HANDLE handle = INVALID_HANDLE_VALUE;
     DWORD err;
 
     TRACE("%p %s %d\n", hSCManager, debugstr_w(lpServiceName), dwDesiredAccess);
@@ -942,7 +942,7 @@ CreateServiceW( SC_HANDLE hSCManager, LPCWSTR lpServiceName,
                   LPCWSTR lpDependencies, LPCWSTR lpServiceStartName,
                   LPCWSTR lpPassword )
 {
-    SC_HANDLE handle;
+    SC_HANDLE handle = INVALID_HANDLE_VALUE;
     DWORD err;
     SIZE_T passwdlen;
 
-- 
1.7.5.4

