From ce67cb245e522293fca567799070a5cdd4267929 Mon Sep 17 00:00:00 2001 From: Toomas Soome Date: Tue, 22 Jan 2019 08:56:33 +0200 Subject: 11131 libtsol: NULL pointer errors Reviewed by: Peter Tribble Approved by: Dan McDonald --- usr/src/lib/libtsol/common/getpathbylabel.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'usr/src/lib/libtsol/common/getpathbylabel.c') diff --git a/usr/src/lib/libtsol/common/getpathbylabel.c b/usr/src/lib/libtsol/common/getpathbylabel.c index 069ce0a6c6..22a0da1329 100644 --- a/usr/src/lib/libtsol/common/getpathbylabel.c +++ b/usr/src/lib/libtsol/common/getpathbylabel.c @@ -23,9 +23,6 @@ * Use is subject to license terms. */ -#pragma ident "%Z%%M% %I% %E% SMI" - - /* * Name: getpathbylabel.c * @@ -182,7 +179,7 @@ tsol_mkmntlist(void) return (NULL); } resetmnttab(mounted); - while (getmntent(mounted, &mnt) == NULL) { + while (getmntent(mounted, &mnt) == 0) { mntl = (struct mntlist *)malloc(sizeof (*mntl)); if (mntl == NULL) { tsol_mlist_free(mntst); -- cgit v1.2.3