Skip to content

Commit

Permalink
fix segfault
Browse files Browse the repository at this point in the history
  • Loading branch information
chjj committed Sep 26, 2012
1 parent efda011 commit 0cd7083
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/compton.c
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -3224,8 +3224,8 @@ parse_config(char *name) {


int n = v->u.object.length; int n = v->u.object.length;
while (n--) { while (n--) {
json_char *kk = val->u.object.values[n].name; json_char *kk = v->u.object.values[n].name;
json_value *vv = val->u.object.values[n].value; json_value *vv = v->u.object.values[n].value;
// TODO: add win_type_* to options struct? // TODO: add win_type_* to options struct?
if (strcmp(kk, "fade") == 0) { if (strcmp(kk, "fade") == 0) {
if (vv->type != json_boolean) continue; if (vv->type != json_boolean) continue;
Expand Down

0 comments on commit 0cd7083

Please sign in to comment.