tweaks: adjust indentation after previous change, reshuffle declarations
This commit is contained in:
@@ -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++;
|
||||
|
||||
Reference in New Issue
Block a user