This repository was archived by the owner on Nov 8, 2023. It is now read-only.
Commit 2229e55
committed
Fix posix_spawn()/posix_spawnp() nullability annotations.
argv is terminated by a null pointer, so that was clearly a mistake. Linux actually allows argv itself to be a null pointer, though that's not portable and even Linux calls pr_warn_once() if you take advantage of this, so we might want to remove that _Nullable from all the exec()-like functions, but for now let's just make sure everything's consistent and not _wrong_... We can worry about not enabling bad practices later (or not, since this isn't something I've ever seen anyone do).
Change-Id: I633245085ca960e6e7b73d4a8aeb4c0535034cef1 parent d471b7a commit 2229e55
1 file changed
+6
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | | - | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
50 | 53 | | |
51 | 54 | | |
52 | 55 | | |
53 | 56 | | |
54 | 57 | | |
55 | | - | |
56 | | - | |
| 58 | + | |
| 59 | + | |
57 | 60 | | |
58 | 61 | | |
59 | 62 | | |
| |||
0 commit comments