[i3] Buggy conditional test?

  • From: Marco Hunsicker <i3@xxxxxxxxxxxx>
  • To: i3-discuss@xxxxxxxxxxxxx
  • Date: Wed, 29 Jan 2014 20:28:06 +0100

Howdy,

I'm not sure whether this could be a bug...

In method dump_node() of ipc.c

void dump_node(yajl_gen gen, struct Con *con, bool inplace_restart)

There is a conditional test (line 294):

if (con->window && con->window->name)

Is this correct?

I'd expect that the line should be at least

if (con->window && con->window->name != NULL)

similar to line 327 in the same file.

If someone could please confirm or explain. Thank you.

Cheers,
Marco

Other related posts:

  • » [i3] Buggy conditional test? - Marco Hunsicker