canonPath(): Check against empty paths
This commit is contained in:
		
							parent
							
								
									6d97d81656
								
							
						
					
					
						commit
						568a099c88
					
				
					 1 changed files with 2 additions and 0 deletions
				
			
		|  | @ -96,6 +96,8 @@ Path absPath(Path path, Path dir) | |||
| 
 | ||||
| Path canonPath(const Path & path, bool resolveSymlinks) | ||||
| { | ||||
|     assert(path != ""); | ||||
| 
 | ||||
|     string s; | ||||
| 
 | ||||
|     if (path[0] != '/') | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue