/*
* ion/mainloop/hooks.c
*
- * Copyright (c) Tuomo Valkonen 1999-2006.
+ * Copyright (c) Tuomo Valkonen 1999-2007.
*
* Ion is free software; you can redistribute it and/or modify it under
* the terms of the GNU Lesser General Public License as published by
EXTL_EXPORT
WHook *mainloop_get_hook(const char *name)
{
+ if(name==NULL)
+ return NULL;
+
if(named_hooks!=NULL){
bool found=FALSE;
Rb_node node=rb_find_key_n(named_hooks, name, &found);