fix formatting in get_process_filename.c
This commit is contained in:
parent
66b1dadc38
commit
9882a4dc09
|
@ -32,8 +32,8 @@ char *get_process_filename(const char *prefix) {
|
||||||
char *tmp;
|
char *tmp;
|
||||||
sasprintf(&tmp, "%s/i3", dir);
|
sasprintf(&tmp, "%s/i3", dir);
|
||||||
dir = tmp;
|
dir = tmp;
|
||||||
struct stat buf;
|
struct stat buf;
|
||||||
if (stat(dir, &buf) != 0) {
|
if (stat(dir, &buf) != 0) {
|
||||||
if (mkdir(dir, 0700) == -1) {
|
if (mkdir(dir, 0700) == -1) {
|
||||||
perror("mkdir()");
|
perror("mkdir()");
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
Loading…
Reference in New Issue