summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuiz Augusto von Dentz <luiz.dentz@openbossa.org>2008-09-11 18:35:09 -0300
committerLuiz Augusto von Dentz <luiz.dentz@openbossa.org>2008-09-11 18:35:09 -0300
commita9ea6926b95c4e36c17d7a49ab9648aa5bfe0f0b (patch)
tree58f9767cf6385bbcf72b381100b088fec0c54b44
parenta3fbc8a1d14cd97eb9d59db2fcf9ce9fd4c64ec7 (diff)
Fix segfault on agent_is_busy.
-rw-r--r--src/agent.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/agent.c b/src/agent.c
index d514d191..e97f31fc 100644
--- a/src/agent.c
+++ b/src/agent.c
@@ -782,7 +782,7 @@ gboolean agent_matches(struct agent *agent, const char *name, const char *path)
gboolean agent_is_busy(struct agent *agent, void *user_data)
{
- if (agent->request)
+ if (!agent->request)
return FALSE;
if (user_data && user_data != agent->request->user_data)