* efreet: fix some potential source of segv.
SVN revision: 50942
This commit is contained in:
parent
be44b17206
commit
5efed73f07
|
@ -301,6 +301,9 @@ efreet_mime_type_get(const char *file)
|
||||||
{
|
{
|
||||||
const char *type = NULL;
|
const char *type = NULL;
|
||||||
|
|
||||||
|
if (!file)
|
||||||
|
return NULL;
|
||||||
|
|
||||||
if ((type = efreet_mime_special_check(file)))
|
if ((type = efreet_mime_special_check(file)))
|
||||||
return type;
|
return type;
|
||||||
|
|
||||||
|
@ -449,6 +452,8 @@ efreet_mime_globs_type_get(const char *file)
|
||||||
char *ext, *mime;
|
char *ext, *mime;
|
||||||
|
|
||||||
/* Check in the extension hash for the type */
|
/* Check in the extension hash for the type */
|
||||||
|
if (!file) return NULL;
|
||||||
|
|
||||||
ext = strchr(file, '.');
|
ext = strchr(file, '.');
|
||||||
if (ext)
|
if (ext)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue