libc/collate: minor tweaks / fix
authorJohn Marino <draco@marino.st>
Tue, 20 Oct 2015 13:22:42 +0000 (15:22 +0200)
committerJohn Marino <draco@marino.st>
Tue, 20 Oct 2015 13:22:42 +0000 (15:22 +0200)
commit58fddedbd62fb08712996ed3e1b7a4a4bb933099
tree811a8c3863f9f2d693dbfa6255cd4eb78ad828a0
parentb15c47143c7c434b60c41e71eec5022043fb92b7
libc/collate: minor tweaks / fix

The main "fix" here is properly setting a collate loading error for each
early return.  Tweaks include removing unnecessary null checks, adding
assertions (from Illumos) and a couple of variables to reduces code
differences and improve readability.  For normal use, there are no
functional changes here.
lib/libc/locale/collate.c