diff options
author | ridiculousfish <corydoras@ridiculousfish.com> | 2012-01-31 16:50:03 -0800 |
---|---|---|
committer | ridiculousfish <corydoras@ridiculousfish.com> | 2012-01-31 16:50:03 -0800 |
commit | 0c9e398bef070e2841e275ce871fc1836e104711 (patch) | |
tree | 3b1025f7454b3126fcf7e4ad5196291d7d180b4b /common.cpp | |
parent | af2d348543f623e30376c54908cfd2eda99fb685 (diff) |
Change parser_t::parse_job's args array to be a local, rather than just leak it, which no longer seems to crash
Diffstat (limited to 'common.cpp')
-rw-r--r-- | common.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -1860,6 +1860,10 @@ void tokenize_variable_array( const wchar_t *val, array_list_t *out ) } } +bool string_prefixes_string(const wcstring &proposed_prefix, const wcstring &value) { + size_t prefix_size = proposed_prefix.size(); + return prefix_size <= value.size() && value.compare(0, prefix_size, proposed_prefix) == 0; +} int create_directory( const wchar_t *d ) { |