hmp: Fix warning from smatch (wrong argument in function call)
Fix this warning: hmp.c:414:38: warning: Using plain integer as NULL pointer qmp_query_block expects a pointer argument, so passing false is wrong. Cc: Luiz Capitulino <lcapitulino@redhat.com> Signed-off-by: Stefan Weil <sw@weilnetz.de> Reviewed-by: Markus Armbruster <armbru@redhat.com> Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
This commit is contained in:
		
							parent
							
								
									cd2d554127
								
							
						
					
					
						commit
						f19e44bc9d
					
				
							
								
								
									
										2
									
								
								hmp.c
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								hmp.c
									
									
									
									
									
								
							@ -411,7 +411,7 @@ void hmp_info_block(Monitor *mon, const QDict *qdict)
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
    /* Print BlockBackend information */
 | 
					    /* Print BlockBackend information */
 | 
				
			||||||
    if (!nodes) {
 | 
					    if (!nodes) {
 | 
				
			||||||
        block_list = qmp_query_block(false);
 | 
					        block_list = qmp_query_block(NULL);
 | 
				
			||||||
    } else {
 | 
					    } else {
 | 
				
			||||||
        block_list = NULL;
 | 
					        block_list = NULL;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user