summaryrefslogtreecommitdiff
path: root/src/app.c
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2021-11-14 07:01:48 +0200
committerJaakko Keränen <jaakko.keranen@iki.fi>2021-11-14 07:01:48 +0200
commit7ad1d4686e0a454570bc6ad9e8b7bde49fcf04d6 (patch)
tree2643b7e0272b626a4b18c18bfc65ac77094e7505 /src/app.c
parent8e85ed281348f286a332c23cae7470cde8f6b9ec (diff)
parent78de5577096bd81d6da152d9f819851c2f8ef260 (diff)
Merge branch 'dev' into work/v1.9
# Conflicts: # CMakeLists.txt # Depends.cmake # src/lang.c
Diffstat (limited to 'src/app.c')
-rw-r--r--src/app.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/app.c b/src/app.c
index 78754d5d..abcf95da 100644
--- a/src/app.c
+++ b/src/app.c
@@ -2625,7 +2625,11 @@ iBool handleCommand_App(const char *cmd) {
2625 return iTrue; 2625 return iTrue;
2626 } 2626 }
2627 else if (equal_Command(cmd, "open")) { 2627 else if (equal_Command(cmd, "open")) {
2628 iString *url = collectNewCStr_String(suffixPtr_Command(cmd, "url")); 2628 const char *urlArg = suffixPtr_Command(cmd, "url");
2629 if (!urlArg) {
2630 return iTrue; /* invalid command */
2631 }
2632 iString *url = collectNewCStr_String(urlArg);
2629 const iBool noProxy = argLabel_Command(cmd, "noproxy") != 0; 2633 const iBool noProxy = argLabel_Command(cmd, "noproxy") != 0;
2630 const iBool fromSidebar = argLabel_Command(cmd, "fromsidebar") != 0; 2634 const iBool fromSidebar = argLabel_Command(cmd, "fromsidebar") != 0;
2631 iUrl parts; 2635 iUrl parts;