summaryrefslogtreecommitdiff
path: root/sftp.c
diff options
context:
space:
mode:
Diffstat (limited to 'sftp.c')
-rw-r--r--sftp.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sftp.c b/sftp.c
index df2aff657..d818ef84e 100644
--- a/sftp.c
+++ b/sftp.c
@@ -16,7 +16,7 @@
16 16
17#include "includes.h" 17#include "includes.h"
18 18
19RCSID("$OpenBSD: sftp.c,v 1.50 2004/06/20 18:53:39 djm Exp $"); 19RCSID("$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)
277static char * 277static char *
278make_absolute(char *p, char *pwd) 278make_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}