Fossil SCM
Squelched a compiler warning reported at [https://fossil-scm.org/forum/forumpost/4215cf68c7].
Commit
35ce9e3ed9c38198dacd64084bc644f59f7faa9cda5bc2f08f642221c15300c4
Parent
709d2f804f415a6…
1 file changed
+1
-1
+1
-1
| --- src/fileedit.c | ||
| +++ src/fileedit.c | ||
| @@ -1158,11 +1158,11 @@ | ||
| 1158 | 1158 | static int fileedit_ajax_setup_filerev(const char * zRev, |
| 1159 | 1159 | char ** zRevUuid, |
| 1160 | 1160 | int * vid, |
| 1161 | 1161 | const char * zFilename, |
| 1162 | 1162 | int * frid){ |
| 1163 | - char * zFileUuid; /* file UUID */ | |
| 1163 | + char * zFileUuid = 0; /* file content UUID */ | |
| 1164 | 1164 | const int checkFile = zFilename!=0 || frid!=0; |
| 1165 | 1165 | |
| 1166 | 1166 | if(checkFile && !fileedit_ajax_check_filename(zFilename)){ |
| 1167 | 1167 | return 0; |
| 1168 | 1168 | } |
| 1169 | 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; /* 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 |