Skip to content

Commit bd8125c

Browse files
committed
update
1 parent f3e2396 commit bd8125c

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

kfc.c

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,7 @@ main(int argc, char **argv)
164164
fprintf(stderr, "No argumemts provided\n");
165165
exit(2);
166166
}
167+
167168
extern char *optarg;
168169
extern int optind, optopt;
169170
p.MODE = "dark";
@@ -173,13 +174,14 @@ main(int argc, char **argv)
173174
exit(2);
174175
}
175176
strcat(p.CONF, "/kfc");
177+
sprintf(p.CCUR, "%s/current", p.CONF);
178+
sprintf(p.CSEQ, "%s/sequence", p.CONF);
179+
176180
if ( mkdir(p.CONF,0777) == 0 )
177181
{
178182
printf("Created 'kfc' directory in XDG_CONFIG_HOME.");
179183
}
180-
sprintf(p.CCUR, "%s/current", p.CONF);
181-
sprintf(p.CSEQ, "%s/sequence", p.CONF);
182-
184+
183185
if (find_palettes() == 1)
184186
{
185187
fprintf(stderr, "Palette directory not found\n");

0 commit comments

Comments
 (0)