device: Fix device_from_string

This commit is contained in:
Pali Rohár committed 2012-08-09 16:00:37 +02:00
1 parent 71b63c29d3
commit 238f92ab25
1 file changed
+1 -1
+1 -1
View File
@@ -35,7 +35,7 @@ enum device device_from_string(const char * device) {
size_t i;
if ( ! device )
if ( ! device || ! device[0] )
return DEVICE_ANY;
for ( i = 0; i < sizeof(devices)/sizeof(devices[0]); ++i )