projects
/
sigrok-util.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d51b532
)
new-driver: Return SR_ERR_MALLOC upon mem errors.
author
Uwe Hermann
<uwe@hermann-uwe.de>
Fri, 2 Nov 2012 14:46:46 +0000
(15:46 +0100)
committer
Uwe Hermann
<uwe@hermann-uwe.de>
Fri, 2 Nov 2012 14:46:46 +0000
(15:46 +0100)
source/drv-api.c
patch
|
blob
|
history
diff --git
a/source/drv-api.c
b/source/drv-api.c
index dbeea02fc826207e771ed104d85f84228202362c..3d71daa08fd211d271d1c49e8203882ed380aa62 100644
(file)
--- a/
source/drv-api.c
+++ b/
source/drv-api.c
@@
-57,7
+57,7
@@
static int hw_init(void)
if (!(drvc = g_try_malloc0(sizeof(struct drv_context)))) {
sr_err("Driver context malloc failed.");
- return SR_ERR;
+ return SR_ERR
_MALLOC
;
}
/* TODO */