Skip to content

Commit

Permalink
Initialize desk_{head,tail} in make_monitor
Browse files Browse the repository at this point in the history
  • Loading branch information
baskerville committed Sep 24, 2013
1 parent 1182033 commit 6ae7601
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion monitor.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ monitor_t *make_monitor(xcb_rectangle_t rect)
monitor_t *m = malloc(sizeof(monitor_t));
snprintf(m->name, sizeof(m->name), "%s%02d", DEFAULT_MON_NAME, ++monitor_uid);
m->prev = m->next = NULL;
m->desk = m->last_desk = NULL;
m->desk = m->last_desk = m->desk_head = m->desk_tail = NULL;
m->rectangle = rect;
m->top_padding = m->right_padding = m->bottom_padding = m->left_padding = 0;
m->wired = true;
Expand Down

0 comments on commit 6ae7601

Please sign in to comment.