- tedu@cvs.openbsd.org 2013/04/24 16:01:46
[misc.c] remove extra parens noticed by nicm
This commit is contained in:
parent
2ca51bf140
commit
026d9db3fb
|
@ -5,6 +5,9 @@
|
||||||
- tedu@cvs.openbsd.org 2013/04/23 17:49:45
|
- tedu@cvs.openbsd.org 2013/04/23 17:49:45
|
||||||
[misc.c]
|
[misc.c]
|
||||||
use xasprintf instead of a series of strlcats and strdup. ok djm
|
use xasprintf instead of a series of strlcats and strdup. ok djm
|
||||||
|
- tedu@cvs.openbsd.org 2013/04/24 16:01:46
|
||||||
|
[misc.c]
|
||||||
|
remove extra parens noticed by nicm
|
||||||
|
|
||||||
20130510
|
20130510
|
||||||
- (dtucker) [configure.ac] Enable -Wsizeof-pointer-memaccess if the compiler
|
- (dtucker) [configure.ac] Enable -Wsizeof-pointer-memaccess if the compiler
|
||||||
|
|
4
misc.c
4
misc.c
|
@ -1,4 +1,4 @@
|
||||||
/* $OpenBSD: misc.c,v 1.87 2013/04/23 17:49:45 tedu Exp $ */
|
/* $OpenBSD: misc.c,v 1.88 2013/04/24 16:01:46 tedu Exp $ */
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2000 Markus Friedl. All rights reserved.
|
* Copyright (c) 2000 Markus Friedl. All rights reserved.
|
||||||
* Copyright (c) 2005,2006 Damien Miller. All rights reserved.
|
* Copyright (c) 2005,2006 Damien Miller. All rights reserved.
|
||||||
|
@ -540,7 +540,7 @@ tilde_expand_filename(const char *filename, uid_t uid)
|
||||||
|
|
||||||
/* Make sure directory has a trailing '/' */
|
/* Make sure directory has a trailing '/' */
|
||||||
len = strlen(pw->pw_dir);
|
len = strlen(pw->pw_dir);
|
||||||
if ((len == 0 || pw->pw_dir[len - 1] != '/'))
|
if (len == 0 || pw->pw_dir[len - 1] != '/')
|
||||||
sep = "/";
|
sep = "/";
|
||||||
else
|
else
|
||||||
sep = "";
|
sep = "";
|
||||||
|
|
Loading…
Reference in New Issue