mirror of
https://github.com/ckolivas/lrzip.git
synced 2025-12-06 07:12:00 +01:00
Style police
This commit is contained in:
parent
0005c1cd95
commit
d7ebee9640
6
lrzip.c
6
lrzip.c
|
|
@ -1276,13 +1276,13 @@ bool initialise_control(rzip_control *control)
|
||||||
}
|
}
|
||||||
size_t len = strlen(eptr);
|
size_t len = strlen(eptr);
|
||||||
|
|
||||||
control->tmpdir = malloc(len+2);
|
control->tmpdir = malloc(len + 2);
|
||||||
if (control->tmpdir == NULL)
|
if (control->tmpdir == NULL)
|
||||||
fatal_return(("Failed to allocate for tmpdir\n"), false);
|
fatal_return(("Failed to allocate for tmpdir\n"), false);
|
||||||
strcpy(control->tmpdir, eptr);
|
strcpy(control->tmpdir, eptr);
|
||||||
if (control->tmpdir[len-1] != '/') {
|
if (control->tmpdir[len - 1] != '/') {
|
||||||
control->tmpdir[len] = '/'; /* need a trailing slash */
|
control->tmpdir[len] = '/'; /* need a trailing slash */
|
||||||
control->tmpdir[len+1] = '\0';
|
control->tmpdir[len + 1] = '\0';
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue