traceroute: fix help text to not show -6 when traceroute6 is off
[oweals/busybox.git] / libbb / loop.c
index 24dab1ac0533b79a95bdddd69850bdbcc8289bfc..3fec7ad6d876f641d691a4a44ee57cffe33e72ad 100644 (file)
@@ -105,7 +105,7 @@ int FAST_FUNC set_loop(char **device, const char *file, unsigned long long offse
        }
 
        /* Find a loop device.  */
-       try = *device ? : dev;
+       try = *device ? *device : dev;
        for (i = 0; rc; i++) {
                sprintf(dev, LOOP_FORMAT, i);