Fossil SCM

Fix uninitialized local variable in the "fossil ui" implementation.

drh 2021-07-01 14:53 trunk
Commit a7aa779b2b16e0dd89de924b3ae019c8953bd1ed64525247d944c478ce763683
1 file changed +1 -1
+1 -1
--- src/main.c
+++ src/main.c
@@ -2905,11 +2905,11 @@
29052905
int fNoBrowser = 0; /* Do not auto-launch web-browser */
29062906
const char *zInitPage = 0; /* Start on this page. --page option */
29072907
int findServerArg = 2; /* argv index for find_server_repository() */
29082908
char *zRemote = 0; /* Remote host on which to run "fossil ui" */
29092909
const char *zJsMode; /* The --jsmode parameter */
2910
- const char *zFossilCmd; /* Name of "fossil" binary on remote system */
2910
+ const char *zFossilCmd =0; /* Name of "fossil" binary on remote system */
29112911
29122912
29132913
#if defined(_WIN32)
29142914
const char *zStopperFile; /* Name of file used to terminate server */
29152915
zStopperFile = find_option("stopper", 0, 1);
29162916
--- src/main.c
+++ src/main.c
@@ -2905,11 +2905,11 @@
2905 int fNoBrowser = 0; /* Do not auto-launch web-browser */
2906 const char *zInitPage = 0; /* Start on this page. --page option */
2907 int findServerArg = 2; /* argv index for find_server_repository() */
2908 char *zRemote = 0; /* Remote host on which to run "fossil ui" */
2909 const char *zJsMode; /* The --jsmode parameter */
2910 const char *zFossilCmd; /* Name of "fossil" binary on remote system */
2911
2912
2913 #if defined(_WIN32)
2914 const char *zStopperFile; /* Name of file used to terminate server */
2915 zStopperFile = find_option("stopper", 0, 1);
2916
--- src/main.c
+++ src/main.c
@@ -2905,11 +2905,11 @@
2905 int fNoBrowser = 0; /* Do not auto-launch web-browser */
2906 const char *zInitPage = 0; /* Start on this page. --page option */
2907 int findServerArg = 2; /* argv index for find_server_repository() */
2908 char *zRemote = 0; /* Remote host on which to run "fossil ui" */
2909 const char *zJsMode; /* The --jsmode parameter */
2910 const char *zFossilCmd =0; /* Name of "fossil" binary on remote system */
2911
2912
2913 #if defined(_WIN32)
2914 const char *zStopperFile; /* Name of file used to terminate server */
2915 zStopperFile = find_option("stopper", 0, 1);
2916

Keyboard Shortcuts

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