Fossil SCM

Fix a compiler warning.

drh 2014-05-19 09:56 trunk
Commit c543079b87ce4b6cd3f5f963ce0ef4cce49fe145
1 file changed +1 -1
+1 -1
--- src/diffcmd.c
+++ src/diffcmd.c
@@ -1005,11 +1005,11 @@
10051005
** (3) Delete the temp file.
10061006
*/
10071007
void diff_tk(const char *zSubCmd, int firstArg){
10081008
int i;
10091009
Blob script;
1010
- char *zTempFile = 0;
1010
+ const char *zTempFile = 0;
10111011
char *zCmd;
10121012
blob_zero(&script);
10131013
blob_appendf(&script, "set fossilcmd {| \"%/\" %s --html -y -i -v",
10141014
g.nameOfExe, zSubCmd);
10151015
find_option("html",0,0);
10161016
--- src/diffcmd.c
+++ src/diffcmd.c
@@ -1005,11 +1005,11 @@
1005 ** (3) Delete the temp file.
1006 */
1007 void diff_tk(const char *zSubCmd, int firstArg){
1008 int i;
1009 Blob script;
1010 char *zTempFile = 0;
1011 char *zCmd;
1012 blob_zero(&script);
1013 blob_appendf(&script, "set fossilcmd {| \"%/\" %s --html -y -i -v",
1014 g.nameOfExe, zSubCmd);
1015 find_option("html",0,0);
1016
--- src/diffcmd.c
+++ src/diffcmd.c
@@ -1005,11 +1005,11 @@
1005 ** (3) Delete the temp file.
1006 */
1007 void diff_tk(const char *zSubCmd, int firstArg){
1008 int i;
1009 Blob script;
1010 const char *zTempFile = 0;
1011 char *zCmd;
1012 blob_zero(&script);
1013 blob_appendf(&script, "set fossilcmd {| \"%/\" %s --html -y -i -v",
1014 g.nameOfExe, zSubCmd);
1015 find_option("html",0,0);
1016

Keyboard Shortcuts

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