On Mon, Jun 15, 2015 at 07:33:14PM -0500, Tyler Hicks wrote: > Signed-off-by: Tyler Hicks <[email protected]>
Acked-by: Seth Arnold <[email protected]> Thanks > --- > libraries/libapparmor/src/private.c | 5 ++--- > 1 file changed, 2 insertions(+), 3 deletions(-) > > diff --git a/libraries/libapparmor/src/private.c > b/libraries/libapparmor/src/private.c > index d237a0d..abe4017 100644 > --- a/libraries/libapparmor/src/private.c > +++ b/libraries/libapparmor/src/private.c > @@ -109,14 +109,13 @@ bool atomic_dec_and_test(unsigned int *v) > > int _aa_is_blacklisted(const char *name, const char *path) > { > - int name_len; > + size_t name_len = strlen(name); > struct ignored_suffix_t *suffix; > > /* skip dot files and files with no name */ > - if (!strlen(name) || *name == '.') > + if (!name_len || *name == '.') > return 1; > > - name_len = strlen(name); > /* skip blacklisted suffixes */ > for (suffix = ignored_suffixes; suffix->text; suffix++) { > char *found; > -- > 2.1.4 > > > -- > AppArmor mailing list > [email protected] > Modify settings or unsubscribe at: > https://lists.ubuntu.com/mailman/listinfo/apparmor >
signature.asc
Description: Digital signature
-- AppArmor mailing list [email protected] Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/apparmor
