NetBSD-Bugs archive

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

lib/46660: Fix typo in deviceid.c



>Number:         46660
>Category:       lib
>Synopsis:       Fix typo in deviceid.c
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    lib-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Jul 05 06:15:00 +0000 2012
>Originator:     Henning Petersen
>Release:        NetBSD-current
>Organization:
>Environment:
>Description:
Fix typo in deviceid.c, from FreeBSD.
>How-To-Repeat:

>Fix:
diff -u -p -r1.1 deviceid.c
--- external/cddl/osnet/lib/libzfs/deviceid.c   7 Aug 2009 20:57:56 -0000       
1.1
+++ external/cddl/osnet/lib/libzfs/deviceid.c   5 Jul 2012 04:01:37 -0000
@@ -78,7 +78,7 @@ devid_str_decode(char *devidstr, ddi_dev
                return (EINVAL);
        }
        *retminor_name = strdup("");
-       if (*retminor_name == NULL);
+       if (*retminor_name == NULL)
                return (ENOMEM);
        return (0);
 }



Home | Main Index | Thread Index | Old Index