projects
/
platform
/
core
/
connectivity
/
bluetooth-frwk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix incorrect memory validation for g_malloc*()
[platform/core/connectivity/bluetooth-frwk.git]
/
test
/
gatt-test
/
bluetooth-gatt-test.c
diff --git
a/test/gatt-test/bluetooth-gatt-test.c
b/test/gatt-test/bluetooth-gatt-test.c
old mode 100755
(executable)
new mode 100644
(file)
index
10faa97
..
2719594
--- a/
test/gatt-test/bluetooth-gatt-test.c
+++ b/
test/gatt-test/bluetooth-gatt-test.c
@@
-112,11
+112,6
@@
char * get_bd_from_file(char *filename)
}
buf = g_malloc0(20);
- /* Fix : NULL_RETURNS */
- if (buf == NULL) {
- close(fd);
- return NULL;
- }
if (read(fd, buf, 17) < 17) {
perror("Can't load firmware");