diff options
Diffstat (limited to 'modutils')
| -rw-r--r-- | modutils/insmod.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/modutils/insmod.c b/modutils/insmod.c index dd999a672..7b715b9c3 100644 --- a/modutils/insmod.c +++ b/modutils/insmod.c | |||
| @@ -805,7 +805,7 @@ static int check_module_name_match(const char *filename, struct stat *statbuf, | |||
| 805 | char *fullname = (char *) userdata; | 805 | char *fullname = (char *) userdata; |
| 806 | 806 | ||
| 807 | if (fullname[0] == '\0') | 807 | if (fullname[0] == '\0') |
| 808 | return (FALSE); | 808 | return FALSE; |
| 809 | else { | 809 | else { |
| 810 | char *tmp, *tmp1 = xstrdup(filename); | 810 | char *tmp, *tmp1 = xstrdup(filename); |
| 811 | tmp = bb_get_last_path_component(tmp1); | 811 | tmp = bb_get_last_path_component(tmp1); |
| @@ -813,11 +813,11 @@ static int check_module_name_match(const char *filename, struct stat *statbuf, | |||
| 813 | free(tmp1); | 813 | free(tmp1); |
| 814 | /* Stop searching if we find a match */ | 814 | /* Stop searching if we find a match */ |
| 815 | m_filename = xstrdup(filename); | 815 | m_filename = xstrdup(filename); |
| 816 | return (FALSE); | 816 | return FALSE; |
| 817 | } | 817 | } |
| 818 | free(tmp1); | 818 | free(tmp1); |
| 819 | } | 819 | } |
| 820 | return (TRUE); | 820 | return TRUE; |
| 821 | } | 821 | } |
| 822 | 822 | ||
| 823 | 823 | ||
