mirror of
				https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
				synced 2025-11-03 09:01:50 -05:00 
			
		
		
		
	pulsecore: Use pa_streq instead of strcmp.
This commit is contained in:
		
							parent
							
								
									e5954aca8e
								
							
						
					
					
						commit
						96a52257a9
					
				
					 8 changed files with 27 additions and 22 deletions
				
			
		| 
						 | 
				
			
			@ -80,7 +80,7 @@ pa_module* pa_module_load(pa_core *c, const char *name, const char *argument) {
 | 
			
		|||
            /* OK, the module only wants to be loaded once, let's make sure it is */
 | 
			
		||||
 | 
			
		||||
            PA_IDXSET_FOREACH(i, c->modules, idx) {
 | 
			
		||||
                if (strcmp(name, i->name) == 0) {
 | 
			
		||||
                if (pa_streq(name, i->name)) {
 | 
			
		||||
                    pa_log("Module \"%s\" should be loaded once at most. Refusing to load.", name);
 | 
			
		||||
                    goto fail;
 | 
			
		||||
                }
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue