Skip to content

Instantly share code, notes, and snippets.

@bdrewery
Created September 7, 2021 17:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bdrewery/5e3f7468affdebab7de9409b32d24e1c to your computer and use it in GitHub Desktop.
Save bdrewery/5e3f7468affdebab7de9409b32d24e1c to your computer and use it in GitHub Desktop.
--- external/sh/miscbltin.c.orig 2021-09-04 19:18:23 UTC
+++ external/sh/miscbltin.c
@@ -231,6 +231,8 @@ readcmd(int argc __unused, char **argv __unused)
* If there's nothing ready, return an error.
*/
if (status <= 0) {
+ while (*ap != NULL)
+ setvar(*ap++, "", 0);
sig = pendingsig;
return (128 + (sig != 0 ? sig : SIGALRM));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment