From 928faa73f50b42b2c55726e1b27214ec2657889d Mon Sep 17 00:00:00 2001 From: Sebastian Dransfeld Date: Sun, 25 Mar 2007 12:05:48 +0000 Subject: [PATCH] Check for NULL argument. SVN revision: 29110 --- legacy/ecore/src/lib/ecore_file/ecore_file.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/legacy/ecore/src/lib/ecore_file/ecore_file.c b/legacy/ecore/src/lib/ecore_file/ecore_file.c index c190e0c92e..3a039f2062 100644 --- a/legacy/ecore/src/lib/ecore_file/ecore_file.c +++ b/legacy/ecore/src/lib/ecore_file/ecore_file.c @@ -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++;