Check for NULL argument.

SVN revision: 29110
This commit is contained in:
Sebastian Dransfeld 2007-03-25 12:05:48 +00:00
parent 4624cd4c09
commit 928faa73f5
1 changed files with 2 additions and 0 deletions

View File

@ -343,6 +343,8 @@ ecore_file_app_exe_get(const char *app)
char *exe = NULL;
int in_quot_dbl = 0, in_quot_sing = 0, restart = 0;
if (!app) return NULL;
p = (char *)app;
restart:
while ((*p) && (isspace(*p))) p++;