Re: [PATCH] Make die() and error() prefix line with binary name if set

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

 



Rocco Rutte wrote:

> +        size_t len=strlen(name && *name ? name : "");
> +        if (0==len)

Wouldn't it be easier (and less idiomatic) to just do

+        size_t len= *name ? strlen(name) : 0;
+        if (0==len)

-- 
Jakub Narebski
Warsaw, Poland

-
: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]