From 6b2adb58e8ab63682b9e44ce55e4e10207197699 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Tue, 14 Feb 2023 16:26:16 +0100 Subject: [FUSE] Fix termination condition for reading host list --- src/fuse/connection.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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 ) { -- cgit v1.2.3-55-g7522