small warning fix

This commit is contained in:
Bert Vermeulen 2011-03-17 14:53:06 +01:00
parent 4487177c79
commit f437ea3fe2
1 changed files with 1 additions and 1 deletions

View File

@ -238,7 +238,7 @@ gboolean sr_device_has_hwcap(struct sr_device *device, int hwcap)
int *capabilities, i;
if (!device || !device->plugin)
return;
return FALSE;
if ((capabilities = device->plugin->get_capabilities()))
for (i = 0; capabilities[i]; i++)