remove clang warning: better check for whether name field is empty
This commit is contained in:
부모
c2b788ad50
커밋
4d7bde2773
@ -374,7 +374,7 @@ char *get_eventfile_abspath(struct inotify_event *event)
|
||||
}
|
||||
|
||||
char *result = NULL;
|
||||
if(event->name != NULL && *event->name != 0)
|
||||
if((event->len) > 0 )
|
||||
{
|
||||
if(asprintf(&result, "%s/%s", wdpath, event->name) == -1)
|
||||
{
|
||||
|
불러오는 중...
Reference in New Issue
Block a user