Fossil SCM
Fix the previous check-in so that it works even when the --page option is omitted.
Commit
6d178fa90f832c31f0a261210de6ccd887eb60fbaddaddda10cad3973ae9f3b5
Parent
10f962420717ccb…
1 file changed
+1
-1
+1
-1
| --- src/main.c | ||
| +++ src/main.c | ||
| @@ -2938,11 +2938,11 @@ | ||
| 2938 | 2938 | Th_InitTraceLog(); |
| 2939 | 2939 | zPort = find_option("port", "P", 1); |
| 2940 | 2940 | isUiCmd = g.argv[1][0]=='u'; |
| 2941 | 2941 | if( isUiCmd ){ |
| 2942 | 2942 | zInitPage = find_option("page", 0, 1); |
| 2943 | - if( zInitPage[0]=='/' ) zInitPage++; | |
| 2943 | + if( zInitPage && zInitPage[0]=='/' ) zInitPage++; | |
| 2944 | 2944 | zFossilCmd = find_option("fossilcmd", 0, 1); |
| 2945 | 2945 | } |
| 2946 | 2946 | zNotFound = find_option("notfound", 0, 1); |
| 2947 | 2947 | allowRepoList = find_option("repolist",0,0)!=0; |
| 2948 | 2948 | if( find_option("nocompress",0,0)!=0 ) g.fNoHttpCompress = 1; |
| 2949 | 2949 |
| --- src/main.c | |
| +++ src/main.c | |
| @@ -2938,11 +2938,11 @@ | |
| 2938 | Th_InitTraceLog(); |
| 2939 | zPort = find_option("port", "P", 1); |
| 2940 | isUiCmd = g.argv[1][0]=='u'; |
| 2941 | if( isUiCmd ){ |
| 2942 | zInitPage = find_option("page", 0, 1); |
| 2943 | if( zInitPage[0]=='/' ) zInitPage++; |
| 2944 | zFossilCmd = find_option("fossilcmd", 0, 1); |
| 2945 | } |
| 2946 | zNotFound = find_option("notfound", 0, 1); |
| 2947 | allowRepoList = find_option("repolist",0,0)!=0; |
| 2948 | if( find_option("nocompress",0,0)!=0 ) g.fNoHttpCompress = 1; |
| 2949 |
| --- src/main.c | |
| +++ src/main.c | |
| @@ -2938,11 +2938,11 @@ | |
| 2938 | Th_InitTraceLog(); |
| 2939 | zPort = find_option("port", "P", 1); |
| 2940 | isUiCmd = g.argv[1][0]=='u'; |
| 2941 | if( isUiCmd ){ |
| 2942 | zInitPage = find_option("page", 0, 1); |
| 2943 | if( zInitPage && zInitPage[0]=='/' ) zInitPage++; |
| 2944 | zFossilCmd = find_option("fossilcmd", 0, 1); |
| 2945 | } |
| 2946 | zNotFound = find_option("notfound", 0, 1); |
| 2947 | allowRepoList = find_option("repolist",0,0)!=0; |
| 2948 | if( find_option("nocompress",0,0)!=0 ) g.fNoHttpCompress = 1; |
| 2949 |