struct mntent *m;
bool found = false;
- while ((m = getmntent(mntentfile))) {
+ while (NULL != (m = getmntent(mntentfile))) {
if (strcmp(m->mnt_dir, path) == 0) {
found = true;
break;
}
endmntent(mntentfile);
- if(!found) {
- *outwalk = '\0';
+ if (!found) {
+ *buffer = '\0';
OUTPUT_FULL_TEXT(buffer);
return;
}