aboutsummaryrefslogtreecommitdiff
path: root/posix/wordexp.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2006-12-23 09:48:04 +0000
committerUlrich Drepper <drepper@redhat.com>2006-12-23 09:48:04 +0000
commit3b6667a4abedaa82ff7392380ffecbe478ed3a69 (patch)
tree8454dcbcce41bf017c2862e152f569db14c24219 /posix/wordexp.c
parent33c6de5801caeb9087c19f265e8af71309743445 (diff)
downloadglibc-3b6667a4abedaa82ff7392380ffecbe478ed3a69.zip
glibc-3b6667a4abedaa82ff7392380ffecbe478ed3a69.tar.gz
glibc-3b6667a4abedaa82ff7392380ffecbe478ed3a69.tar.bz2
* posix/wordexp.c: Remove some unnecessary tests.
Diffstat (limited to 'posix/wordexp.c')
-rw-r--r--posix/wordexp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/posix/wordexp.c b/posix/wordexp.c
index adece95..765d14d 100644
--- a/posix/wordexp.c
+++ b/posix/wordexp.c
@@ -1809,7 +1809,7 @@ envsubst:
/* Substitute parameter */
break;
- if (free_value && value)
+ if (free_value)
free (value);
if (!colon_seen && value)
@@ -1827,7 +1827,7 @@ envsubst:
case ACT_NONNULL_SUBST:
if (value && (*value || !colon_seen))
{
- if (free_value && value)
+ if (free_value)
free (value);
value = pattern ? __strdup (pattern) : pattern;