commit-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[hurd] 03/09: Fix undefined value


From: Samuel Thibault
Subject: [hurd] 03/09: Fix undefined value
Date: Tue, 24 Sep 2013 12:29:32 +0000

This is an automated email from the git hooks/post-receive script.

sthibault pushed a commit to branch dde
in repository hurd.

commit 0e605fdcc5af16a4f95e6b17d499bf6e16bc0174
Author: Samuel Thibault <address@hidden>
Date:   Sat Sep 21 13:06:32 2013 +0200

    Fix undefined value
    
    * libmachdev/ds_routines.c (ds_device_open): Default `err` to
    D_NO_SUCH_DEVICE in case `num_emul` is 0.
---
 libmachdev/ds_routines.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libmachdev/ds_routines.c b/libmachdev/ds_routines.c
index 6345755..d22fb2f 100644
--- a/libmachdev/ds_routines.c
+++ b/libmachdev/ds_routines.c
@@ -166,7 +166,7 @@ ds_device_open (mach_port_t open_port, mach_port_t 
reply_port,
                char *name, device_t *devp, mach_msg_type_name_t *devicePoly)
 {
   int i;
-  io_return_t err;
+  io_return_t err = D_NO_SUCH_DEVICE;
 
   /* Open must be called on the master device port.  */
   if (!is_master_device (open_port))

-- 
Alioth's /usr/local/bin/git-commit-notice on 
/srv/git.debian.org/git/pkg-hurd/hurd.git



reply via email to

[Prev in Thread] Current Thread [Next in Thread]