From: Matej Mužila <mmuz...@redhat.com>

Don't use uninitialized variable

Signed-off-by: Matej Mužila <mmuz...@redhat.com>
Acked-by:  K. Y. Srinivasan <k...@microsoft.com>
---
diff --git a/tools/hv/hv_fcopy_daemon.c b/tools/hv/hv_fcopy_daemon.c
index 1fc2dc2..0f8f918 100644
--- a/tools/hv/hv_fcopy_daemon.c
+++ b/tools/hv/hv_fcopy_daemon.c
@@ -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)) {

_______________________________________________
devel mailing list
de...@linuxdriverproject.org
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

Reply via email to