Signed-off-by: geraldo netto <geraldone...@gmail.com>
---
 core/commands.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/core/commands.cc b/core/commands.cc
index 75c78d3..5ae7a65 100644
--- a/core/commands.cc
+++ b/core/commands.cc
@@ -380,7 +380,7 @@ void loader_parse_cmdline(char* str, int *pargc, char*** 
pargv, char** app_cmdli
                 break;
             }
         }
-        if (*ch == '\0') {
+        if (ch && *ch == '\0') {
             // empty str, contains only spaces
             *app_cmdline = str;
         }
-- 
2.7.4

-- 
You received this message because you are subscribed to the Google Groups "OSv 
Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to osv-dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to