]> granicus.if.org Git - zfs/commitdiff
Remove double declaration of char *
authorBrian Behlendorf <behlendorf1@llnl.gov>
Tue, 16 Dec 2008 23:49:21 +0000 (15:49 -0800)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Tue, 16 Dec 2008 23:49:21 +0000 (15:49 -0800)
lib/libzfs/libzfs_sendrecv.c

index a3ed5cea8589b21feb79580a902e7fc783680d70..9d49091d8569e7cb502bce2e2ae6e93eefcad8e7 100644 (file)
@@ -1852,13 +1852,13 @@ zfs_receive_one(libzfs_handle_t *hdl, int infd, const char *tosnap,
                 */
                avl_tree_t *local_avl;
                nvlist_t *local_nv, *fs;
-               char *cp = strchr(zc.zc_value, '@');
 
                /*
                 * XXX Do this faster by just iterating over snaps in
                 * this fs.  Also if zc_value does not exist, we will
                 * get a strange "does not exist" error message.
                 */
+               cp = strchr(zc.zc_value, '@');
                *cp = '\0';
                if (gather_nvlist(hdl, zc.zc_value, NULL, NULL,
                    &local_nv, &local_avl) == 0) {