Fossil SCM

Code style cleanup.

mistachkin 2013-10-28 20:13 trunk
Commit 24273fd0c429d71dbc134acc3999c7d3359ab57e
1 file changed +1 -2
+1 -2
--- src/th_main.c
+++ src/th_main.c
@@ -529,16 +529,15 @@
529529
void *p,
530530
int argc,
531531
const char **argv,
532532
int *argl
533533
){
534
- int openRepository;
535
-
536534
if( argc!=1 && argc!=2 ){
537535
return Th_WrongNumArgs(interp, "repository ?BOOLEAN?");
538536
}
539537
if( argc==2 ){
538
+ int openRepository = 0;
540539
if( Th_ToInt(interp, argv[1], argl[1], &openRepository) ){
541540
return TH_ERROR;
542541
}
543542
if( openRepository ) db_find_and_open_repository(OPEN_OK_NOT_FOUND, 0);
544543
}
545544
--- src/th_main.c
+++ src/th_main.c
@@ -529,16 +529,15 @@
529 void *p,
530 int argc,
531 const char **argv,
532 int *argl
533 ){
534 int openRepository;
535
536 if( argc!=1 && argc!=2 ){
537 return Th_WrongNumArgs(interp, "repository ?BOOLEAN?");
538 }
539 if( argc==2 ){
 
540 if( Th_ToInt(interp, argv[1], argl[1], &openRepository) ){
541 return TH_ERROR;
542 }
543 if( openRepository ) db_find_and_open_repository(OPEN_OK_NOT_FOUND, 0);
544 }
545
--- src/th_main.c
+++ src/th_main.c
@@ -529,16 +529,15 @@
529 void *p,
530 int argc,
531 const char **argv,
532 int *argl
533 ){
 
 
534 if( argc!=1 && argc!=2 ){
535 return Th_WrongNumArgs(interp, "repository ?BOOLEAN?");
536 }
537 if( argc==2 ){
538 int openRepository = 0;
539 if( Th_ToInt(interp, argv[1], argl[1], &openRepository) ){
540 return TH_ERROR;
541 }
542 if( openRepository ) db_find_and_open_repository(OPEN_OK_NOT_FOUND, 0);
543 }
544

Keyboard Shortcuts

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