Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=xbdmenu.git;a=commitdiff;h=6b3cef0c38f7aacbcc11640e11ddaca06d9d182e
commit 6b3cef0c38f7aacbcc11640e11ddaca06d9d182e Author: James Buren <[email protected]> Date: Sun Mar 15 16:45:03 2009 -0500 env.c * check for theme and menu directory being set by flags diff --git a/env.c b/env.c index 92365c0..5e1b892 100644 --- a/env.c +++ b/env.c @@ -45,6 +45,11 @@ extern void env_init(const int argc,const char **argv) env->themefile = strcmb(val,THEMEFILE); } } + if(env->menudir==NULL||env->themedir==NULL) + { + printf("The menu and theme directory must be specified.\n"); + exit(EXIT_FAILURE); + } } /* free global env struct */ _______________________________________________ Frugalware-git mailing list [email protected] http://frugalware.org/mailman/listinfo/frugalware-git
