Permalink
Browse files

fix segfault

  • Loading branch information...
1 parent efda011 commit 0cd708391ae8aa41f86d6fbc90e4f28d4dd493e2 @chjj committed Sep 26, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/compton.c
View
@@ -3224,8 +3224,8 @@ parse_config(char *name) {
int n = v->u.object.length;
while (n--) {
- json_char *kk = val->u.object.values[n].name;
- json_value *vv = val->u.object.values[n].value;
+ json_char *kk = v->u.object.values[n].name;
+ json_value *vv = v->u.object.values[n].value;
// TODO: add win_type_* to options struct?
if (strcmp(kk, "fade") == 0) {
if (vv->type != json_boolean) continue;

0 comments on commit 0cd7083

Please sign in to comment.