Skip to content

Commit

Permalink
Fix comparison of pointer and bool
Browse files Browse the repository at this point in the history
  • Loading branch information
jwakely authored and SpamapS committed Feb 17, 2017
1 parent 6d87178 commit 3e04a5e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libgearman/client.cc
Original file line number Diff line number Diff line change
Expand Up @@ -599,7 +599,7 @@ gearman_return_t gearman_client_add_server(gearman_client_st *client_shell,
{
Client* client= client_shell->impl();

if (gearman_connection_create(client->universal, host, port) == false)
if (gearman_connection_create(client->universal, host, port) == NULL)
{
assert(client->error_code() != GEARMAN_SUCCESS);
return client->error_code();
Expand All @@ -614,7 +614,7 @@ gearman_return_t gearman_client_add_server(gearman_client_st *client_shell,

gearman_return_t Client::add_server(const char *host, const char* service_)
{
if (gearman_connection_create(universal, host, service_) == false)
if (gearman_connection_create(universal, host, service_) == NULL)
{
assert(error_code() != GEARMAN_SUCCESS);
return error_code();
Expand Down

0 comments on commit 3e04a5e

Please sign in to comment.