mirror of
				https://github.com/postgres/postgres.git
				synced 2025-11-03 09:13:20 +03:00 
			
		
		
		
	Suppress uninitialized-variable warning from less-bright compilers.
The type variable must get set on first iteration of the while loop,
but there are reasonably modern gcc versions that don't realize that.
Initialize it with a dummy value.  This undoes a removal of initialization
in commit 654809e770.
			
			
This commit is contained in:
		@@ -372,7 +372,7 @@ JsonbToCString(StringInfo out, JsonbContainer *in, int estimated_len)
 | 
				
			|||||||
{
 | 
					{
 | 
				
			||||||
	bool		first = true;
 | 
						bool		first = true;
 | 
				
			||||||
	JsonbIterator *it;
 | 
						JsonbIterator *it;
 | 
				
			||||||
	JsonbIteratorToken type;
 | 
						JsonbIteratorToken type = WJB_DONE;
 | 
				
			||||||
	JsonbValue	v;
 | 
						JsonbValue	v;
 | 
				
			||||||
	int			level = 0;
 | 
						int			level = 0;
 | 
				
			||||||
	bool		redo_switch = false;
 | 
						bool		redo_switch = false;
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user