Fossil SCM

Fix the previous check-in so that it works even when the --page option is omitted.

drh 2021-07-06 16:31 trunk
Commit 6d178fa90f832c31f0a261210de6ccd887eb60fbaddaddda10cad3973ae9f3b5
1 file changed +1 -1
+1 -1
--- src/main.c
+++ src/main.c
@@ -2938,11 +2938,11 @@
29382938
Th_InitTraceLog();
29392939
zPort = find_option("port", "P", 1);
29402940
isUiCmd = g.argv[1][0]=='u';
29412941
if( isUiCmd ){
29422942
zInitPage = find_option("page", 0, 1);
2943
- if( zInitPage[0]=='/' ) zInitPage++;
2943
+ if( zInitPage && zInitPage[0]=='/' ) zInitPage++;
29442944
zFossilCmd = find_option("fossilcmd", 0, 1);
29452945
}
29462946
zNotFound = find_option("notfound", 0, 1);
29472947
allowRepoList = find_option("repolist",0,0)!=0;
29482948
if( find_option("nocompress",0,0)!=0 ) g.fNoHttpCompress = 1;
29492949
--- 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

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button