Skip to content

Commit

Permalink
Comparison performed over pointers, corrected (check issue #71).
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.gridway.org/gridway/trunk@188 9b4b2aa8-92f0-458a-8103-c3834d721760
  • Loading branch information
alorca committed Oct 30, 2009
1 parent 80c9864 commit 4cca530
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/client/gw_client_init.c
Expand Up @@ -86,9 +86,9 @@ gw_client_t* gw_client_init()

proxy_path = getenv("X509_USER_PROXY");
if (proxy_path == NULL)
gw_client.proxy_path = strdup("");
gw_client.proxy_path = strdup("");
else
gw_client.proxy_path = strdup(proxy_path);
gw_client.proxy_path = strdup(proxy_path);

/* ---------------------------------------------- */
/* Open gwd.conf to get number of jobs & hosts */
Expand Down Expand Up @@ -204,7 +204,7 @@ void gw_client_finalize()
if ( gw_client.group != NULL )
free(gw_client.group);

if ( gw_client.proxy_path != strdup("") )
if ( strncmp(gw_client.proxy_path, strdup(""), GW_MSG_STRING_LONG) != 0 )
free(gw_client.proxy_path);

for (i = 0 ; i < gw_client.number_of_jobs; i++)
Expand Down

0 comments on commit 4cca530

Please sign in to comment.