Projects STRLCPY neomutt Commits 803713a6
🤬
Revision indexing in progress... (symbol navigation in revisions will be accurate after indexed)
  • ■ ■ ■ ■ ■
    mutt/buffer.c
    skipped 482 lines
    483 483  void mutt_buffer_seek(struct Buffer *buf, size_t offset)
    484 484  {
    485 485   if (buf)
    486  - buf->dptr = buf->data + offset;
     486 + {
     487 + buf->dptr = buf->data ? buf->data + offset : NULL;
     488 + }
    487 489  }
    488 490   
  • ■ ■ ■ ■
    test/string/mutt_str_next_word.c
    skipped 53 lines
    54 54   struct NextWordTest *t = &word_tests[i];
    55 55   TEST_CASE_("%ld, '%s'", i, NONULL(t->str));
    56 56   const char *result = mutt_str_next_word(t->str);
    57  - TEST_CHECK(result == (t->str + t->result));
     57 + TEST_CHECK(result == (t->str ? t->str + t->result : NULL));
    58 58   }
    59 59   }
    60 60  }
    skipped 1 lines
Please wait...
Page is in error, reload to recover