diff options
Diffstat (limited to 'sftp.c')
-rw-r--r-- | sftp.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -16,7 +16,7 @@ | |||
16 | 16 | ||
17 | #include "includes.h" | 17 | #include "includes.h" |
18 | 18 | ||
19 | RCSID("$OpenBSD: sftp.c,v 1.50 2004/06/20 18:53:39 djm Exp $"); | 19 | RCSID("$OpenBSD: sftp.c,v 1.51 2004/06/21 17:36:31 avsm Exp $"); |
20 | 20 | ||
21 | #include "buffer.h" | 21 | #include "buffer.h" |
22 | #include "xmalloc.h" | 22 | #include "xmalloc.h" |
@@ -277,13 +277,13 @@ path_append(char *p1, char *p2) | |||
277 | static char * | 277 | static char * |
278 | make_absolute(char *p, char *pwd) | 278 | make_absolute(char *p, char *pwd) |
279 | { | 279 | { |
280 | char *abs; | 280 | char *abs_str; |
281 | 281 | ||
282 | /* Derelativise */ | 282 | /* Derelativise */ |
283 | if (p && p[0] != '/') { | 283 | if (p && p[0] != '/') { |
284 | abs = path_append(pwd, p); | 284 | abs_str = path_append(pwd, p); |
285 | xfree(p); | 285 | xfree(p); |
286 | return(abs); | 286 | return(abs_str); |
287 | } else | 287 | } else |
288 | return(p); | 288 | return(p); |
289 | } | 289 | } |