Fossil SCM
This fixes the logic error introduced in [f019cb5fc3f].
Commit
25857ebba5180111c1cdeed406086b1f0ba7e0433b20907506862ff0d8d60d45
Parent
91adccdb7d2dff7…
1 file changed
+1
-1
+1
-1
| --- src/http_transport.c | ||
| +++ src/http_transport.c | ||
| @@ -104,11 +104,11 @@ | ||
| 104 | 104 | ** Initialize a Blob to the name of the configured SSH command. |
| 105 | 105 | */ |
| 106 | 106 | void transport_ssh_command(Blob *p){ |
| 107 | 107 | char *zSsh; /* The base SSH command */ |
| 108 | 108 | zSsh = g.zSshCmd; |
| 109 | - if( zSsh==0 && zSsh[0]==0 ){ | |
| 109 | + if( zSsh==0 || zSsh[0]==0 ){ | |
| 110 | 110 | zSsh = db_get("ssh-command", zDefaultSshCmd); |
| 111 | 111 | } |
| 112 | 112 | blob_init(p, zSsh, -1); |
| 113 | 113 | } |
| 114 | 114 | |
| 115 | 115 |
| --- src/http_transport.c | |
| +++ src/http_transport.c | |
| @@ -104,11 +104,11 @@ | |
| 104 | ** Initialize a Blob to the name of the configured SSH command. |
| 105 | */ |
| 106 | void transport_ssh_command(Blob *p){ |
| 107 | char *zSsh; /* The base SSH command */ |
| 108 | zSsh = g.zSshCmd; |
| 109 | if( zSsh==0 && zSsh[0]==0 ){ |
| 110 | zSsh = db_get("ssh-command", zDefaultSshCmd); |
| 111 | } |
| 112 | blob_init(p, zSsh, -1); |
| 113 | } |
| 114 | |
| 115 |
| --- src/http_transport.c | |
| +++ src/http_transport.c | |
| @@ -104,11 +104,11 @@ | |
| 104 | ** Initialize a Blob to the name of the configured SSH command. |
| 105 | */ |
| 106 | void transport_ssh_command(Blob *p){ |
| 107 | char *zSsh; /* The base SSH command */ |
| 108 | zSsh = g.zSshCmd; |
| 109 | if( zSsh==0 || zSsh[0]==0 ){ |
| 110 | zSsh = db_get("ssh-command", zDefaultSshCmd); |
| 111 | } |
| 112 | blob_init(p, zSsh, -1); |
| 113 | } |
| 114 | |
| 115 |