Re: [i3] Buggy conditional test?
- From: Alexander Berntsen <alexander@xxxxxxxxxx>
- To: i3-discuss@xxxxxxxxxxxxx
- Date: Thu, 30 Jan 2014 12:58:51 +0100
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
On 30/01/14 11:07, Michael Stapelberg wrote:
Marco Hunsicker <i3@xxxxxxxxxxxx> writes:
if (con->window && con->window->name)
if (con->window && con->window->name != NULL)
These two lines do exactly the same thing in C.
It's obviously not a bug, but consistency is neat. If I write you a
patch that makes this consistent (I'll look for others as well),
would you apply it? Do you prefer the former or the latter?
Personally, I prefer the latter.
- --
Alexander
alexander@xxxxxxxxxx
http://plaimi.net/~alexander
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.22 (GNU/Linux)
Comment: Using GnuPG with Thunderbird -
http://www.enigmail.net/
iF4EAREIAAYFAlLqPnsACgkQRtClrXBQc7XqkAD+Oe7fTLhki15iS1BhoswIPRnI
OSAJ9tMR/TbgTUEZkikA/RVUC7EMnxRWDRcoG/5AVzEXzYdSDRNhVKVjAzHqAwRH
=GGyk
-----END PGP SIGNATURE-----
Other related posts: