diff options
Diffstat (limited to 'util-linux/mdev.c')
-rw-r--r-- | util-linux/mdev.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/util-linux/mdev.c b/util-linux/mdev.c index 4fff20dcd..14aa593f5 100644 --- a/util-linux/mdev.c +++ b/util-linux/mdev.c | |||
@@ -120,8 +120,11 @@ static void make_device(char *path, int delete) | |||
120 | 120 | ||
121 | /* If not this device, skip rest of line */ | 121 | /* If not this device, skip rest of line */ |
122 | /* (regexec returns whole pattern as "range" 0) */ | 122 | /* (regexec returns whole pattern as "range" 0) */ |
123 | if (result || off[0].rm_so || off[0].rm_eo != strlen(device_name)) | 123 | if (result || off[0].rm_so |
124 | || ((int)off[0].rm_eo != (int)strlen(device_name)) | ||
125 | ) { | ||
124 | goto next_line; | 126 | goto next_line; |
127 | } | ||
125 | } | 128 | } |
126 | 129 | ||
127 | /* This line matches: stop parsing the file | 130 | /* This line matches: stop parsing the file |