pFad - Phone/Frame/Anonymizer/Declutterfier! Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

URL: https://github.com/nodejs/node/commit/77cacf6d9d

ithub.githubassets.com/assets/code-bedb41adf21fe337.css" /> src: use C++ nullptr in sqlite · nodejs/node@77cacf6 · GitHub
Skip to content

Commit 77cacf6

Browse files
tniessenaduh95
authored andcommitted
src: use C++ nullptr in sqlite
Refs: #61407 PR-URL: #61416 Reviewed-By: René <contact.9a5d6388@renegade334.me.uk> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net>
1 parent 6442229 commit 77cacf6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/node_sqlite.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1235,7 +1235,7 @@ void DatabaseSync::Prepare(const FunctionCallbackInfo<Value>& args) {
12351235

12361236
Utf8Value sql(env->isolate(), args[0].As<String>());
12371237
sqlite3_stmt* s = nullptr;
1238-
int r = sqlite3_prepare_v2(db->connection_, *sql, -1, &s, 0);
1238+
int r = sqlite3_prepare_v2(db->connection_, *sql, -1, &s, nullptr);
12391239

12401240
CHECK_ERROR_OR_THROW(env->isolate(), db, r, SQLITE_OK, void());
12411241
BaseObjectPtr<StatementSync> stmt =
@@ -3043,7 +3043,7 @@ BaseObjectPtr<StatementSync> SQLTagStore::PrepareStatement(
30433043
if (stmt == nullptr) {
30443044
sqlite3_stmt* s = nullptr;
30453045
int r = sqlite3_prepare_v2(
3046-
session->database_->connection_, sql.data(), sql.size(), &s, 0);
3046+
session->database_->connection_, sql.data(), sql.size(), &s, nullptr);
30473047

30483048
if (r != SQLITE_OK) {
30493049
THROW_ERR_SQLITE_ERROR(isolate, session->database_.get());

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad © 2024 Your Company Name. All rights reserved.





Check this box to remove all script contents from the fetched content.



Check this box to remove all images from the fetched content.


Check this box to remove all CSS styles from the fetched content.


Check this box to keep images inefficiently compressed and original size.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy