Style police

This commit is contained in:
Con Kolivas 2015-04-16 15:47:31 +10:00
parent 0005c1cd95
commit d7ebee9640

View file

@ -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;
} }