projects
/
framework
/
connectivity
/
connman.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
888b540
)
Check for invalid devices first
author
Marcel Holtmann
<marcel@holtmann.org>
Mon, 5 Jan 2009 01:09:51 +0000
(
02:09
+0100)
committer
Marcel Holtmann
<marcel@holtmann.org>
Mon, 5 Jan 2009 01:09:51 +0000
(
02:09
+0100)
src/device.c
patch
|
blob
|
history
diff --git
a/src/device.c
b/src/device.c
index
48f3f7d
..
832146f
100644
(file)
--- a/
src/device.c
+++ b/
src/device.c
@@
-587,7
+587,7
@@
static void remove_driver(struct connman_element *element, gpointer user_data)
connman_bool_t __connman_device_has_driver(struct connman_device *device)
{
- if (device->driver == NULL)
+ if (device
== NULL || device
->driver == NULL)
return FALSE;
return device->registered;