Skip to content

Commit ca3d79d

Browse files
committed
Fixed network
1 parent 91d26a9 commit ca3d79d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/network.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -83,11 +83,11 @@ char *network_data_get_siteid (network_data *data) {
8383
bool network_data_set_endpoints (network_data *data, char *auth, char *check, char *upload, bool duplicate) {
8484
if (duplicate) {
8585
// auth is optional
86-
char *s1 = (auth) ? cloudsync_string_dup(auth, false) : NULL;
86+
char *s1 = (auth) ? cloudsync_string_dup(auth) : NULL;
8787
if (auth && !s1) return false;
88-
char *s2 = cloudsync_string_dup(check, false);
88+
char *s2 = cloudsync_string_dup(check);
8989
if (!s2) {if (auth && s1) sqlite3_free(s1); return false;}
90-
char *s3 = cloudsync_string_dup(upload, false);
90+
char *s3 = cloudsync_string_dup(upload);
9191
if (!s3) {if (auth && s1) sqlite3_free(s1); sqlite3_free(s2); return false;}
9292

9393
auth = s1;
@@ -208,7 +208,7 @@ NETWORK_RESULT network_receive_buffer (network_data *data, const char *endpoint,
208208
result.blen = blen;
209209
} else {
210210
result.code = CLOUDSYNC_NETWORK_ERROR;
211-
result.buffer = buffer ? buffer : (errbuf[0]) ? cloudsync_string_dup(errbuf, false) : NULL;
211+
result.buffer = buffer ? buffer : (errbuf[0]) ? cloudsync_string_dup(errbuf) : NULL;
212212
result.blen = buffer ? blen : rc;
213213
}
214214

0 commit comments

Comments
 (0)