# HG changeset patch # User Rob Landley # Date 1366959553 18000 # Node ID ae7a0fd5363f42e8dab96a36cc8a7903b95a68e7 # Parent 2945e3cbebf2ce425106edaf22e1fbed09056ec5 Remove leaked global path_mounts. diff -r 2945e3cbebf2 -r ae7a0fd5363f lib/getmountlist.c --- a/lib/getmountlist.c Fri Apr 26 01:47:59 2013 -0500 +++ b/lib/getmountlist.c Fri Apr 26 01:59:13 2013 -0500 @@ -7,8 +7,6 @@ #include -char *path_mounts = "/proc/mounts"; - // Get a list of mount points from /etc/mtab or /proc/mounts, including // statvfs() information. This returns a reversed list, which is good for // finding overmounts and such. @@ -18,7 +16,7 @@ FILE *fp; struct mtab_list *mtlist, *mt; struct mntent me; - char evilbuf[2*PATH_MAX]; + char evilbuf[2*PATH_MAX], *path_mounts = "/proc/mounts"; mtlist = 0; if (!(fp = setmntent(path_mounts, "r"))) {