git: udp/usrreq: Add brackets properly

Sepherosa Ziehau sephe at crater.dragonflybsd.org
Wed Oct 28 18:33:28 PDT 2015


commit 8756ce9107278fb3962785698d2a0f2cc3810d6e
Author: Sepherosa Ziehau <sephe at dragonflybsd.org>
Date:   Thu Oct 29 09:20:29 2015 +0800

    udp/usrreq: Add brackets properly
    
    The brackets were left out pretty accidentally, but the code
    also worked pretty accidentally:
    
    int error = 0;
    
    if (ai != NULL)
        error = udp_preattach(...);
    
    if (error)
        goto out
    else {
        /* mismatched comment */
    }
    
    Reported-by: s4 on DragonFlyDigest

Summary of changes:
 sys/netinet/udp_usrreq.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/8756ce9107278fb3962785698d2a0f2cc3810d6e


-- 
DragonFly BSD source repository



More information about the Commits mailing list