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_); }
Here's the patch to fix this:
diff --git a/gearmand- 1.0.3/libgearma n-server/ struct/ gearmand. h b/gearmand- 1.0.3/libgearma n-server/ struct/ gearmand. h 1.0.3/libgearma n-server/ struct/ gearmand. h 1.0.3/libgearma n-server/ struct/ gearmand. h add_next( NULL), dcon_list( NULL)
index b50ed9a..fde93ab 100644
--- a/gearmand-
+++ b/gearmand-
@@ -93,7 +93,7 @@ struct gearmand_st
thread_
free_
{
- if (host)
+ if (host_)
{
host= strdup(host_);
}