git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH 1/3] sh-i18n--envsubst: do not crash when no arguments are given

From
Johannes Sixt <j.sixt@viscovery.net>
Date
Jun 6, 2011, 06:59 UTC
Message-ID
<4DEC7ABE.6070000@viscovery.net>
In-Reply-To
<4DEC7A65.7020207@viscovery.net>
From: Johannes Sixt <j6t@kdbg.org>
Signed-off-by: Johannes Sixt <j6t@kdbg.org>
---
 sh-i18n--envsubst.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/sh-i18n--envsubst.c b/sh-i18n--envsubst.c
index 2eb0ee4..47a306f 100644
--- a/sh-i18n--envsubst.c
+++ b/sh-i18n--envsubst.c
@@ -74,6 +74,7 @@ main (int argc, char *argv[])
 	{
 	case 1:
 	  error ("we won't substitute all variables on stdin for you");
+	  break;
 	  /*
 	  all_variables = 1;
       subst_from_stdin ();
-- 
1.7.6.rc0.1186.gfb4fd
Previous: Johannes SixtNext: Johannes Sixt
Message 2 of 5 in “sh-i18n--envsubst; case-sensitive getenv on Windows”
  1. 0/3 sh-i18n--envsubst; case-sensitive getenv on WindowsJohannes Sixt, Jun 6, 2011
  2. 1/3 sh-i18n--envsubst: do not crash when no arguments are givenJohannes Sixt, Jun 6, 2011
  3. 2/3 mingw.c: move definition of mingw_getenv downJohannes Sixt, Jun 6, 2011
  4. 3/3 Windows: teach getenv to do a case-sensitive searchJohannes Sixt, Jun 6, 2011
  5. Karsten BleesOct 5, 2011

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.