Skip to contentSkip to conversation

tools: hv: fcopy_daemon: Don't use uninitialized variable

PATCH Superseded Matej Mužila 1 participant 1 message Oct 21, 2014 Hyper-V/Azure core and drivers

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 3/3 tools: hv: fcopy_daemon: Don't use uninitialized variable

From: Matej Mužila <[email protected]>

Don't use uninitialized variable

---

tools/hv/hv_fcopy_daemon.c +1 -1
index 1fc2dc2..0f8f918 100644
@@ -191,7 +191,7 @@ int main(void)
 		default:
 			syslog(LOG_ERR, "Unknown operation: %d",
 				in_msg->operation);
-
+			error = HV_ERROR_NOT_SUPPORTED;
 		}
 
 		if (pwrite(fcopy_fd, &error, sizeof(int), 0) != sizeof(int)) {