From: molivier Date: Mon, 3 Jan 2005 14:22:35 +0000 (+0000) Subject: Fixed a warning about an uninitialized variable X-Git-Tag: xonotic-v0.1.0preview~5246 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=a72a2924f31083e0dcfd4054c5bcbaa9abb187f5;p=xonotic%2Fdarkplaces.git Fixed a warning about an uninitialized variable git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@4896 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/netconn.c b/netconn.c index e6dd8a77..d9c051f9 100755 --- a/netconn.c +++ b/netconn.c @@ -125,7 +125,7 @@ static void _HostCache_ViewSet_Remove( int index ) // returns true if A should be inserted before B static qboolean _HostCache_SortTest( hostcache_t *A, hostcache_t *B ) { - int result; // > 0 if for numbers A > B and for text if A < B + int result = 0; // > 0 if for numbers A > B and for text if A < B if( hostcache_sortbyfield == HCIF_PING ) result = A->info.ping - B->info.ping;