Fossil SCM
Fix compiler warning seen with MSVC.
Commit
2fc8222f8285dd634724a6132319a939176577e1
Parent
cc828822c52a918…
1 file changed
+1
-1
+1
-1
| --- src/setup.c | ||
| +++ src/setup.c | ||
| @@ -492,11 +492,11 @@ | ||
| 492 | 492 | if( c>='a' && c<='z' ) oa[c&0x7f] = " checked=\"checked\""; |
| 493 | 493 | } |
| 494 | 494 | } |
| 495 | 495 | |
| 496 | 496 | /* figure out inherited permissions */ |
| 497 | - memset(inherit, 0, sizeof(inherit)); | |
| 497 | + memset((char *)inherit, 0, sizeof(inherit)); | |
| 498 | 498 | if( fossil_strcmp(zLogin, "developer") ){ |
| 499 | 499 | char *z1, *z2; |
| 500 | 500 | z1 = z2 = db_text(0,"SELECT cap FROM user WHERE login='developer'"); |
| 501 | 501 | while( z1 && *z1 ){ |
| 502 | 502 | inherit[0x7f & *(z1++)] = |
| 503 | 503 |
| --- src/setup.c | |
| +++ src/setup.c | |
| @@ -492,11 +492,11 @@ | |
| 492 | if( c>='a' && c<='z' ) oa[c&0x7f] = " checked=\"checked\""; |
| 493 | } |
| 494 | } |
| 495 | |
| 496 | /* figure out inherited permissions */ |
| 497 | memset(inherit, 0, sizeof(inherit)); |
| 498 | if( fossil_strcmp(zLogin, "developer") ){ |
| 499 | char *z1, *z2; |
| 500 | z1 = z2 = db_text(0,"SELECT cap FROM user WHERE login='developer'"); |
| 501 | while( z1 && *z1 ){ |
| 502 | inherit[0x7f & *(z1++)] = |
| 503 |
| --- src/setup.c | |
| +++ src/setup.c | |
| @@ -492,11 +492,11 @@ | |
| 492 | if( c>='a' && c<='z' ) oa[c&0x7f] = " checked=\"checked\""; |
| 493 | } |
| 494 | } |
| 495 | |
| 496 | /* figure out inherited permissions */ |
| 497 | memset((char *)inherit, 0, sizeof(inherit)); |
| 498 | if( fossil_strcmp(zLogin, "developer") ){ |
| 499 | char *z1, *z2; |
| 500 | z1 = z2 = db_text(0,"SELECT cap FROM user WHERE login='developer'"); |
| 501 | while( z1 && *z1 ){ |
| 502 | inherit[0x7f & *(z1++)] = |
| 503 |