diff --git a/src/aklog/aklog.c b/src/aklog/aklog.c index eaead4478c..a21da6c530 100644 --- a/src/aklog/aklog.c +++ b/src/aklog/aklog.c @@ -1166,7 +1166,7 @@ next_path(char *origpath) static char path[MAXPATHLEN + 1]; static char pathtocheck[MAXPATHLEN + 1]; - int link = FALSE; /* Is this a symbolic link? */ + ssize_t link; /* Return value from readlink */ char linkbuf[MAXPATHLEN + 1]; char tmpbuf[MAXPATHLEN + 1]; @@ -1244,7 +1244,7 @@ next_path(char *origpath) else last_comp = elast_comp; } - while(link); + while(link > 0); return(pathtocheck); }