Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/cddl/osnet/dist/lib/libzfs/common Not sure why this...



details:   https://anonhg.NetBSD.org/src/rev/be6317df8959
branches:  trunk
changeset: 779566:be6317df8959
user:      dsl <dsl%NetBSD.org@localhost>
date:      Sun Jun 03 10:53:51 2012 +0000

description:
Not sure why this has just started to fail!
But it really isn't a good idea to compare a uint64_t to NULL.

diffstat:

 external/cddl/osnet/dist/lib/libzfs/common/libzfs_sendrecv.c |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r 0d3519869f51 -r be6317df8959 external/cddl/osnet/dist/lib/libzfs/common/libzfs_sendrecv.c
--- a/external/cddl/osnet/dist/lib/libzfs/common/libzfs_sendrecv.c      Sun Jun 03 10:45:10 2012 +0000
+++ b/external/cddl/osnet/dist/lib/libzfs/common/libzfs_sendrecv.c      Sun Jun 03 10:53:51 2012 +0000
@@ -2245,7 +2245,7 @@
                        (void) printf("found clone origin %s\n", zc.zc_string);
        }
 
-       stream_wantsnewfs = (drrb->drr_fromguid == NULL ||
+       stream_wantsnewfs = (drrb->drr_fromguid == 0 ||
            (drrb->drr_flags & DRR_FLAG_CLONE));
 
        if (stream_wantsnewfs) {



Home | Main Index | Thread Index | Old Index