projects
/
NeonServV5.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
fixed some more coding fails
[NeonServV5.git]
/
src
/
timeq.c
diff --git
a/src/timeq.c
b/src/timeq.c
index b53b58ddd25689d91674d75537e6bcb25c289560..335032519f52a837b01c9f5e58bce5cc88face4e 100644
(file)
--- a/
src/timeq.c
+++ b/
src/timeq.c
@@
-64,7
+64,8
@@
struct timeq_entry* timeq_uadd(int useconds, int module_id, timeq_callback_t *ca
entry->name = NULL;
entry->next = timeq_events;
entry->prev = NULL;
- timeq_events->prev = entry;
+ if(timeq_events)
+ timeq_events->prev = entry;
timeq_events = entry;
DESYNCHRONIZE(synchronized);
return entry;