Signed-off-by: Elia Pinto <gitter.spi...@gmail.com>
---
 contrib/credential/wincred/git-credential-wincred.c |    6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/contrib/credential/wincred/git-credential-wincred.c 
b/contrib/credential/wincred/git-credential-wincred.c
index a1d38f0..edff71c 100644
--- a/contrib/credential/wincred/git-credential-wincred.c
+++ b/contrib/credential/wincred/git-credential-wincred.c
@@ -258,11 +258,13 @@ static void read_credential(void)
 
 int main(int argc, char *argv[])
 {
-       const char *usage =
-           "usage: git credential-wincred <get|store|erase>\n";
 
        if (!argv[1])
+           {
+               const char *usage =
+                 "usage: git credential-wincred <get|store|erase>\n";
                die(usage);
+           }
 
        /* git use binary pipes to avoid CRLF-issues */
        _setmode(_fileno(stdin), _O_BINARY);
-- 
1.7.10.4

--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to