]> sourceware.org Git - dm.git/commitdiff
Just initializing some variables that needed to be.
authorBenjamin Marzinski <bmarzins@redhat.com>
Fri, 29 Apr 2005 21:37:23 +0000 (21:37 +0000)
committerBenjamin Marzinski <bmarzins@redhat.com>
Fri, 29 Apr 2005 21:37:23 +0000 (21:37 +0000)
lib/event/dmeventd.c

index 2654171c94448ffd0fbbe172fb8d18eaff1f47e4..a54ca2f9d1a97d4ee58c526aca30a029fecff783 100644 (file)
@@ -334,7 +334,7 @@ static int error_detected(struct thread_status *thread, char *params)
 static int event_wait(struct thread_status *thread)
 {
        int ret = 0;
-       void *next;
+       void *next = NULL;
        char *params, *target_type;
        uint64_t start, length;
        struct dm_task *dmt;
@@ -873,6 +873,9 @@ fflush(stdout);
        case CMD_GET_NEXT_REGISTERED_DEVICE:
                ret = get_registered_device(&message_data, 1);
                break;
+       default:
+               ret = -EINVAL;
+               break;
        }
 
        return ret;
This page took 0.026509 seconds and 5 git commands to generate.