usbengines/usbotgwatcher/src/cusbotgwatcher.cpp
branchRCL_3
changeset 79 25fce757be94
parent 21 ff9df6630274
child 80 e02eb84a14d2
--- a/usbengines/usbotgwatcher/src/cusbotgwatcher.cpp	Thu Aug 19 10:54:11 2010 +0300
+++ b/usbengines/usbotgwatcher/src/cusbotgwatcher.cpp	Tue Aug 31 16:13:57 2010 +0300
@@ -37,8 +37,10 @@
 #include "errors.h"
 #include "debug.h"
 #include "panic.h"
+#ifndef STIF
 _LIT_SECURITY_POLICY_PASS( KAlwaysPassPolicy );
 _LIT_SECURITY_POLICY_C1( KLocalServicesPolicy, ECapabilityLocalServices );
+#endif
 
 // ---------------------------------------------------------------------------
 // 
@@ -898,7 +900,7 @@
 
     iUsbServiceRequest = CUsbServiceControl::ERequestUndefined;
 
-    TUsbServiceState serviceState;
+    TUsbServiceState serviceState = EUsbServiceIdle;
     TInt err = iUsb.GetServiceState(serviceState);
 
     if (KErrNone != err)