Skip to content

Commit

Permalink
[cache] Silence false gcc maybe-uninitialized warning
Browse files Browse the repository at this point in the history
  • Loading branch information
ejurgensen committed Jun 25, 2024
1 parent f87b65f commit bcdd3b2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/cache.c
Original file line number Diff line number Diff line change
Expand Up @@ -1069,6 +1069,9 @@ xcode_sync_with_files(sqlite3 *hdl)
if (ret < 0)
goto error;

// Silence false maybe-uninitialized warning
rowB = NULL;

// Loop while either list ("A" files list, "B" cache list) has remaining items
for(i = 0, cmp = 0;;)
{
Expand Down

0 comments on commit bcdd3b2

Please sign in to comment.