Commit 9bb8375f authored by Jiri (George) Lebl's avatar Jiri (George) Lebl Committed by George Lebl

when access fails check for null in sim->mf since this would normally be

Fri Feb 16 23:25:39 2001  George Lebl <jirka@5z.com>

	* menu.c: when access fails check for null in sim->mf since this
	  would normally be NULL, for menuitems.
parent 964a768b
Fri Feb 16 23:25:39 2001 George Lebl <jirka@5z.com>
* menu.c: when access fails check for null in sim->mf since this
would normally be NULL, for menuitems.
Fri Feb 16 21:35:14 2001 George Lebl <jirka@5z.com>
* menu-fentry.[ch], menu.c: Fix menu merging in the respect that
......
Fri Feb 16 23:25:39 2001 George Lebl <jirka@5z.com>
* menu.c: when access fails check for null in sim->mf since this
would normally be NULL, for menuitems.
Fri Feb 16 21:35:14 2001 George Lebl <jirka@5z.com>
* menu-fentry.[ch], menu.c: Fix menu merging in the respect that
......
......@@ -1245,8 +1245,9 @@ is_item_writable (const ShowItemMenu *sim)
#endif
/*file exists and is writable, we're in bussines*/
return TRUE;
} else if (sim->item_loc == NULL ||
errno == ENOENT) {
} else if ((sim->item_loc == NULL ||
errno == ENOENT) &&
sim->mf != NULL) {
/*the dentry isn't there, check if we can write the
directory*/
if (access (sim->mf->menudir, W_OK) == 0 &&
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment