tweaks: adjust indentation after previous change, reshuffle declarations

This commit is contained in:
Benno Schulenberg
2019-09-17 14:11:45 +02:00
parent b901a20a06
commit 4383b01b9b

View File

@@ -2307,14 +2307,12 @@ void do_savefile(void)
* Return an allocated string containing the expanded path. */
char *real_dir_from_tilde(const char *buf)
{
char *retval;
char *tilde_dir, *retval;
size_t i = 1;
if (*buf != '~')
return mallocstrcpy(NULL, buf);
size_t i = 1;
char *tilde_dir;
/* Figure out how much of the string we need to compare. */
while (buf[i] != '/' && buf[i] != '\0')
i++;