Comment 5 for bug 1127347

Revision history for this message
Keyur (keyurdg) wrote :

Here's the patch to fix this:

diff --git a/gearmand-1.0.3/libgearman-server/struct/gearmand.h b/gearmand-1.0.3/libgearman-server/struct/gearmand.h
index b50ed9a..fde93ab 100644
--- a/gearmand-1.0.3/libgearman-server/struct/gearmand.h
+++ b/gearmand-1.0.3/libgearman-server/struct/gearmand.h
@@ -93,7 +93,7 @@ struct gearmand_st
     thread_add_next(NULL),
     free_dcon_list(NULL)
   {
- if (host)
+ if (host_)
     {
       host= strdup(host_);
     }