Module Name: src Committed By: rillig Date: Sun Dec 20 00:57:29 UTC 2020
Modified Files: src/usr.bin/make: var.c Log Message: make(1): replace FStr_Assign with separate initialization functions In GetVarnamesToUnexport, there is no need to free the local FStr since the only place where it is assigned an allocated string is at the very end. Having separate functions for the two main use cases of a possibly allocated string makes the calling code simpler. This is a preparatory commit for making the memory allocation in ApplyModifiers easier to understand. To generate a diff of this commit: cvs rdiff -u -r1.738 -r1.739 src/usr.bin/make/var.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.