X-Git-Url: http://gitweb.michael.orlitzky.com/?p=apply-default-acl.git;a=blobdiff_plain;f=src%2Flibadacl.c;h=a1923601669b66efb0ffa45e62a9b73695354ddb;hp=01cb4adaea9ebef67d9358b6ac1b5555dc452500;hb=0b4ff086871b13edb9da3bda67ac4b6f710e73dd;hpb=450699ecf86f3bebab00ca162349270730026d7f diff --git a/src/libadacl.c b/src/libadacl.c index 01cb4ad..a192360 100644 --- a/src/libadacl.c +++ b/src/libadacl.c @@ -56,7 +56,9 @@ * and @c OPEN_ERROR if not. */ int safe_open_ex(int at_fd, char* pathname, int flags) { - if (pathname != NULL && strlen(pathname) == 0) { + /* We're only called by safe_open(), so pathname is guaranteed to be + non-NULL */ + if (strlen(pathname) == 0) { /* Oops, went one level to deep with nothing to do. */ return at_fd; }