summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/utils.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/utils.c b/src/utils.c
index 8e8bf79..9baef7e 100644
--- a/src/utils.c
+++ b/src/utils.c
@@ -241,9 +241,8 @@ LIBIMOBILEDEVICE_GLUE_API char *generate_uuid()
if (i == 8 || i == 13 || i == 18 || i == 23) {
uuid[i] = '-';
continue;
- } else {
- uuid[i] = chars[get_rand(0, 16)];
}
+ uuid[i] = chars[get_rand(0, 16)];
}
/* make it a real string */