diff options
author | Jim Meyering <meyering@redhat.com> | 2010-01-04 16:46:44 +0100 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2010-01-04 16:46:44 +0100 |
commit | dc0f5eb6a01b759c92478be7f21de3e685ebfbca (patch) | |
tree | b341ff81fb14f5a087562b167b980898beec430f /src | |
parent | 0faf3bf874936d7e0c6f03eac5d6fe015af50743 (diff) | |
download | coreutils-dc0f5eb6a01b759c92478be7f21de3e685ebfbca.tar.xz |
maint: use more readable operator: "||" rather than "|"
* src/cp.c (make_dir_parents_private): Use "||" rather than "|",
so that clang understands there is no undefined pointer dereference.
Diffstat (limited to 'src')
-rw-r--r-- | src/cp.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -411,8 +411,8 @@ make_dir_parents_private (char const *const_dir, size_t src_offset, *slash = '\0'; missing_dir = (stat (dir, &stats) != 0); - if (missing_dir | x->preserve_ownership | x->preserve_mode - | x->preserve_timestamps) + if (missing_dir || x->preserve_ownership || x->preserve_mode + || x->preserve_timestamps) { /* Add this directory to the list of directories whose modes might need fixing later. */ |