Skip to content

Commit 3929f0e

Browse files
committed
Merge branch 'rc/1.5.0.0'
2 parents ad5e4a1 + 25605af commit 3929f0e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

alpaca_zorro_plugin/AlpacaZorroPlugin.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,9 @@ namespace alpaca
249249

250250
account_number = response.content().account_number;
251251
BrokerError(("Account " + account_number).c_str());
252-
sprintf_s(Account, 1024, account_number.c_str());
252+
if (Account) {
253+
sprintf_s(Account, 1024, account_number.c_str());
254+
}
253255
return 1;
254256
}
255257

0 commit comments

Comments
 (0)