remove duplicate test

This commit is contained in:
Otto Modinos 2015-01-16 23:15:00 +02:00
parent bb466a8c16
commit 4ad9cbd823
1 changed files with 1 additions and 1 deletions

2
bar.c
View File

@ -1204,7 +1204,7 @@ main (int argc, char **argv)
{
area_t *area = area_get(press_ev->event, press_ev->detail, press_ev->event_x);
// Respond to the click
if (area && area->button == press_ev->detail) {
if (area) {
write(STDOUT_FILENO, area->cmd, strlen(area->cmd));
write(STDOUT_FILENO, "\n", 1);
}