Fix "non-zero padding" error
Probably it's not a good idea to pass a temporary object to StringSource.
This commit is contained in:
		
							parent
							
								
									8cf672091e
								
							
						
					
					
						commit
						5e2ffd0b8a
					
				
					 1 changed files with 2 additions and 1 deletions
				
			
		|  | @ -1332,7 +1332,8 @@ void DerivationGoal::buildDone() | ||||||
|                 StringSink sink; |                 StringSink sink; | ||||||
|                 dumpPath(path, sink); |                 dumpPath(path, sink); | ||||||
|                 deletePath(path); |                 deletePath(path); | ||||||
|                 StringSource source(rewriteHashes(sink.s, rewritesFromTmp)); |                 sink.s = rewriteHashes(sink.s, rewritesFromTmp); | ||||||
|  |                 StringSource source(sink.s); | ||||||
|                 restorePath(path, source); |                 restorePath(path, source); | ||||||
|             } |             } | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue