[Chapel Merge] Fix undefined behavior in config arg parsing

Branch: refs/heads/main
Revision: 3cc6d11f89be93b09840d3c9b04fcba4acca6a7c
Author: jabraham17
Link: Fix undefined behavior in config arg parsing by jabraham17 · Pull Request #28908 · chapel-lang/chapel · GitHub
Log Message:
Fix undefined behavior in config arg parsing (#28908)

Fixes potential undefined behavior caused by config arg parser doing
pointer arithmetic on a null pointer, which is technically UB.

[Reviewed by @arifthpe]

Compare: Comparing c2e3d3797ea8cfbe90a5d65e0103ebcaab589635...ba279b8baade14a8e427fc66970bf5a09fed6dc7 · chapel-lang/chapel · GitHub

Diff:
M runtime/src/config.c
https://github.com/chapel-lang/chapel/pull/28908.diff