Fossil SCM

Fix a harmless compiler warning.

drh 2020-12-24 15:58 trunk
Commit b4862238ec50899e50c7440499b7107ad2837f0226c32575ad5b5d8f6e7f47b4
1 file changed +1 -1
+1 -1
--- src/chat.c
+++ src/chat.c
@@ -568,11 +568,11 @@
568568
** Event notifications on this session cause the U+0007 character to
569569
** be sent to the TTY on which the "fossil chat" command is run, thus
570570
** causing an auditory notification.
571571
*/
572572
void chat_command(void){
573
- const char *zUrl;
573
+ const char *zUrl = 0;
574574
char *azArgv[5];
575575
db_find_and_open_repository(0,0);
576576
if( g.argc==3 ){
577577
zUrl = g.argv[2];
578578
}else if( g.argc!=2 ){
579579
--- src/chat.c
+++ src/chat.c
@@ -568,11 +568,11 @@
568 ** Event notifications on this session cause the U+0007 character to
569 ** be sent to the TTY on which the "fossil chat" command is run, thus
570 ** causing an auditory notification.
571 */
572 void chat_command(void){
573 const char *zUrl;
574 char *azArgv[5];
575 db_find_and_open_repository(0,0);
576 if( g.argc==3 ){
577 zUrl = g.argv[2];
578 }else if( g.argc!=2 ){
579
--- src/chat.c
+++ src/chat.c
@@ -568,11 +568,11 @@
568 ** Event notifications on this session cause the U+0007 character to
569 ** be sent to the TTY on which the "fossil chat" command is run, thus
570 ** causing an auditory notification.
571 */
572 void chat_command(void){
573 const char *zUrl = 0;
574 char *azArgv[5];
575 db_find_and_open_repository(0,0);
576 if( g.argc==3 ){
577 zUrl = g.argv[2];
578 }else if( g.argc!=2 ){
579

Keyboard Shortcuts

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