summaryrefslogtreecommitdiff
path: root/man
diff options
context:
space:
mode:
authorFilipe Brandenburger <filbranden@google.com>2015-08-30 19:16:50 -0700
committerFilipe Brandenburger <filbranden@google.com>2015-08-30 19:48:30 -0700
commitd3ef6c5560613fe98fcd227b0256ab4af6078ad0 (patch)
treeaa518a08ff230ea10fa31348293b7a751dd56773 /man
parent40ec276fdfc98f9fa7ed155b906235a79711066d (diff)
extract_first_word: Refactor allocation in empty argument case
This covers the case where an argument is an empty string, such as ''. Instead of allocating the empty string in the individual conditions when state == VALUE, just always allocate it at the end of state == START, at which point we know we will have an argument. Tested that test-util keeps passing after the refactor. Follow up to: 14e685c29d5b317b815e3e9f056648027852b07e
Diffstat (limited to 'man')
0 files changed, 0 insertions, 0 deletions