aboutsummaryrefslogtreecommitdiff
path: root/util-linux/readprofile.c
diff options
context:
space:
mode:
Diffstat (limited to 'util-linux/readprofile.c')
-rw-r--r--util-linux/readprofile.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/util-linux/readprofile.c b/util-linux/readprofile.c
index 1f5ba2ecc..219654496 100644
--- a/util-linux/readprofile.c
+++ b/util-linux/readprofile.c
@@ -176,9 +176,11 @@ int readprofile_main(int argc UNUSED_PARAM, char **argv)
176 /* ignore any LEADING (before a '[tT]' symbol is found) 176 /* ignore any LEADING (before a '[tT]' symbol is found)
177 Absolute symbols */ 177 Absolute symbols */
178 if ((*mode == 'A' || *mode == '?') && total == 0) continue; 178 if ((*mode == 'A' || *mode == '?') && total == 0) continue;
179 if (*mode != 'T' && *mode != 't' && 179 if (*mode != 'T' && *mode != 't'
180 *mode != 'W' && *mode != 'w') 180 && *mode != 'W' && *mode != 'w'
181 ) {
181 break; /* only text is profiled */ 182 break; /* only text is profiled */
183 }
182 184
183 if (indx >= len / sizeof(*buf)) 185 if (indx >= len / sizeof(*buf))
184 bb_error_msg_and_die("profile address out of range. " 186 bb_error_msg_and_die("profile address out of range. "