OSDN Git Service
(root)
/
opengatem
/
opengatem.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
78b23ff
)
added a null pointer check in alarm
author
watanaby
<watanaby@users.osdn.jp>
Mon, 4 Jul 2016 02:45:23 +0000
(11:45 +0900)
committer
watanaby
<watanaby@users.osdn.jp>
Mon, 4 Jul 2016 02:45:23 +0000
(11:45 +0900)
mngsrc/alarms.c
patch
|
blob
|
history
diff --git
a/mngsrc/alarms.c
b/mngsrc/alarms.c
index
5fb010b
..
6ce5b38
100644
(file)
--- a/
mngsrc/alarms.c
+++ b/
mngsrc/alarms.c
@@
-265,8
+265,8
@@
int delAlarmListItem(Alarm *pDel){
Alarm *p;
Alarm *pPrev;
- /* if
the item
is none, no proc */
- if(pDel==NULL){
+ /* if
item or list
is none, no proc */
+ if(pDel==NULL
|| pAlarmTop==NULL
){
/* no proc */
}