Set id color to Default on allocation
This commit is contained in:
		
							parent
							
								
									32ec697092
								
							
						
					
					
						commit
						e9394bfff9
					
				
							
								
								
									
										1
									
								
								chat.h
									
									
									
									
									
								
							
							
						
						
									
										1
									
								
								chat.h
									
									
									
									
									
								
							@ -51,6 +51,7 @@ static inline size_t idFor(const char *name) {
 | 
				
			|||||||
	if (id) return id;
 | 
						if (id) return id;
 | 
				
			||||||
	idNames[idNext] = strdup(name);
 | 
						idNames[idNext] = strdup(name);
 | 
				
			||||||
	if (!idNames[idNext]) err(EX_OSERR, "strdup");
 | 
						if (!idNames[idNext]) err(EX_OSERR, "strdup");
 | 
				
			||||||
 | 
						idColors[idNext] = Default;
 | 
				
			||||||
	return idNext++;
 | 
						return idNext++;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user