]> granicus.if.org Git - apache/commitdiff
As noted by Yann, this resulted in a dead var assignment. Preinit won't
authorWilliam A. Rowe Jr <wrowe@apache.org>
Thu, 17 Jul 2014 04:30:25 +0000 (04:30 +0000)
committerWilliam A. Rowe Jr <wrowe@apache.org>
Thu, 17 Jul 2014 04:30:25 +0000 (04:30 +0000)
work due to the fact that we overload rv as both the DWORD windows result
and the apr_status_t result code.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1611244 13f79535-47bb-0310-9956-ffa450edef68

server/mpm/winnt/service.c

index a46640ee588a2477221219f2cf34a0f2b308391e..457ff8cf99e243db1a96de02abcb7c9ed329b477 100644 (file)
@@ -535,7 +535,7 @@ static void __stdcall service_nt_main_fn(DWORD argc, LPSTR *argv)
          rv = StartServiceCtrlDispatcherA(dispatchTable);
 #endif
     if (rv) {
-        apr_status_t rv = APR_SUCCESS;
+        rv = APR_SUCCESS;
     }
     else {
         /* This is a genuine failure of the SCM. */