[Coverity] Fixes an 'Uninitialized variables' error.

Initialize retval to SQLITE_ERROR during declaration at the beggining of
the method. I could technically go with SQLITE_OK but if this is going
to be unintentially returned without being initialized, I would much
rather it return an error than success.
pull/136/head
Suresh Sundriyal 9 years ago
parent 1457aba137
commit 803642a849

@ -212,7 +212,7 @@ static int vt_update(sqlite3_vtab *tab,
const char *name = (
argc > 2 ? (const char *)sqlite3_value_text(argv[2]) : NULL);
vtab *p_vt = (vtab *)tab;
int retval;
int retval = SQLITE_ERROR;
if (argc != 1 &&
(argc < 3 ||

Loading…
Cancel
Save