Fossil SCM

Squelched a compiler warning reported at [https://fossil-scm.org/forum/forumpost/4215cf68c7].

stephan 2020-06-03 22:43 trunk
Commit 35ce9e3ed9c38198dacd64084bc644f59f7faa9cda5bc2f08f642221c15300c4
1 file changed +1 -1
+1 -1
--- src/fileedit.c
+++ src/fileedit.c
@@ -1158,11 +1158,11 @@
11581158
static int fileedit_ajax_setup_filerev(const char * zRev,
11591159
char ** zRevUuid,
11601160
int * vid,
11611161
const char * zFilename,
11621162
int * frid){
1163
- char * zFileUuid; /* file UUID */
1163
+ char * zFileUuid = 0; /* file content UUID */
11641164
const int checkFile = zFilename!=0 || frid!=0;
11651165
11661166
if(checkFile && !fileedit_ajax_check_filename(zFilename)){
11671167
return 0;
11681168
}
11691169
--- src/fileedit.c
+++ src/fileedit.c
@@ -1158,11 +1158,11 @@
1158 static int fileedit_ajax_setup_filerev(const char * zRev,
1159 char ** zRevUuid,
1160 int * vid,
1161 const char * zFilename,
1162 int * frid){
1163 char * zFileUuid; /* file UUID */
1164 const int checkFile = zFilename!=0 || frid!=0;
1165
1166 if(checkFile && !fileedit_ajax_check_filename(zFilename)){
1167 return 0;
1168 }
1169
--- src/fileedit.c
+++ src/fileedit.c
@@ -1158,11 +1158,11 @@
1158 static int fileedit_ajax_setup_filerev(const char * zRev,
1159 char ** zRevUuid,
1160 int * vid,
1161 const char * zFilename,
1162 int * frid){
1163 char * zFileUuid = 0; /* file content UUID */
1164 const int checkFile = zFilename!=0 || frid!=0;
1165
1166 if(checkFile && !fileedit_ajax_check_filename(zFilename)){
1167 return 0;
1168 }
1169

Keyboard Shortcuts

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