Fix discrepancy between query and restore format

This was a regression introduced by f28f334.
This commit is contained in:
Bastien Dejean 2015-11-12 14:03:37 +01:00
parent 54d9215f79
commit e8ee82c3a4

View file

@ -83,11 +83,11 @@ void restore_tree(char *file_path)
continue;
int wg, top, right, bottom, left;
unsigned int bw;
char floating, layout = 0, end = 0;
char layout = 0, end = 0;
name[0] = '\0';
loc.desktop = NULL;
sscanf(line + level, "%s %u %i %i,%i,%i,%i %c %c %c", name,
&bw, &wg, &top, &right, &bottom, &left, &layout, &floating, &end);
sscanf(line + level, "%s %u %i %i,%i,%i,%i %c %c", name,
&bw, &wg, &top, &right, &bottom, &left, &layout, &end);
locate_desktop(name, &loc);
d = loc.desktop;
if (d == NULL) {