summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/fuse/connection.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fuse/connection.c b/src/fuse/connection.c
index 5ad3ae7..e760d98 100644
--- a/src/fuse/connection.c
+++ b/src/fuse/connection.c
@@ -193,7 +193,7 @@ bool connection_init( const char *hosts, const char *lowerImage, const uint16_t
altIndex += 1;
}
current = end + 1;
- } while ( end != NULL && altIndex < MAX_ALTS );
+ } while ( *end != '\0' && altIndex < MAX_ALTS );
logadd( LOG_INFO, "Got %d servers from init call", altIndex );
// Wait a maximum of five seconds if we're not connected yet
if ( connection.sockFd == -1 && pendingConnectionAttempts > 0 ) {