From: Eric Biggers Date: Sun, 3 Mar 2013 22:32:38 +0000 (-0600) Subject: set_message_queue_names(): while => for X-Git-Tag: v1.2.6~14 X-Git-Url: https://wimlib.net/git/?p=wimlib;a=commitdiff_plain;h=8a3ba2dade2f96c9fcb7e24834b0e882b6e45e97;ds=sidebyside set_message_queue_names(): while => for --- diff --git a/src/mount_image.c b/src/mount_image.c index a05a822d..bd1a7d54 100644 --- a/src/mount_image.c +++ b/src/mount_image.c @@ -848,12 +848,9 @@ static int set_message_queue_names(struct wimfs_context *ctx, return WIMLIB_ERR_NOTDIR; } - p = dir_path; - while (*p) { + for (p = dir_path; *p; p++) if (*p == '/') *p = 0xff; - p++; - } ctx->unmount_to_daemon_mq_name = strcat_dup(u2d_prefix, dir_path, NAME_MAX);