mirror of
https://github.com/RaySollium99/libpicofe.git
synced 2025-09-05 14:57:46 -04:00
bugfix2
git-svn-id: file:///home/notaz/opt/svn/PicoDrive/platform@643 be3aeb3a-fb24-0410-a615-afba39da0efa
This commit is contained in:
parent
f3b6f1336a
commit
bf3c44f485
1 changed files with 3 additions and 2 deletions
|
@ -426,9 +426,10 @@ const char *in_get_dev_name(int dev_id, int must_be_active, int skip_pfix)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
name = in_devices[dev_id].name;
|
name = in_devices[dev_id].name;
|
||||||
if (name == NULL)
|
if (name == NULL || !skip_pfix)
|
||||||
return NULL;
|
return name;
|
||||||
|
|
||||||
|
/* skip prefix */
|
||||||
tmp = strchr(name, ':');
|
tmp = strchr(name, ':');
|
||||||
if (tmp != NULL)
|
if (tmp != NULL)
|
||||||
name = tmp + 1;
|
name = tmp + 1;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue