From: notaz Date: Wed, 4 Mar 2009 21:46:23 +0000 (+0000) Subject: bugfix X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f3b6f1336a05b2124324d3d506997e51b69c6ee0;p=libpicofe.git bugfix git-svn-id: file:///home/notaz/opt/svn/PicoDrive/platform@642 be3aeb3a-fb24-0410-a615-afba39da0efa --- diff --git a/common/input.c b/common/input.c index 0fe8dc1..1dae2bd 100644 --- a/common/input.c +++ b/common/input.c @@ -426,6 +426,9 @@ const char *in_get_dev_name(int dev_id, int must_be_active, int skip_pfix) return NULL; name = in_devices[dev_id].name; + if (name == NULL) + return NULL; + tmp = strchr(name, ':'); if (tmp != NULL) name = tmp + 1;