Changeset f119757


Ignore:
Timestamp:
Sep 28, 2009, 11:23:00 PM (15 years ago)
Author:
Anders Kaseorg <andersk@mit.edu>
Branches:
master, release-1.10, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
Children:
9bda818
Parents:
61de085
git-author:
Anders Kaseorg <andersk@mit.edu> (09/28/09 21:53:18)
git-committer:
Anders Kaseorg <andersk@mit.edu> (09/28/09 23:23:00)
Message:
g_utf8_next_char can’t return NULL; remove redundant checks.

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • fmtext.c

    r39cff48 rf119757  
    345345      fg = f->default_fgcolor;
    346346      bg = f->default_bgcolor;
    347       while (p && owl_fmtext_is_format_char(g_utf8_get_char(p))) {
     347      while (owl_fmtext_is_format_char(g_utf8_get_char(p))) {
    348348        _owl_fmtext_update_attributes(g_utf8_get_char(p), &attr, &fg, &bg);
    349349        p = g_utf8_next_char(p);
  • util.c

    rc79a047 rf119757  
    696696        strncat(r, s, p-s);
    697697        p = g_utf8_next_char(p);
    698         while (p && owl_fmtext_is_format_char(g_utf8_get_char(p))) {
     698        while (owl_fmtext_is_format_char(g_utf8_get_char(p))) {
    699699          p = g_utf8_next_char(p);
    700700        }
Note: See TracChangeset for help on using the changeset viewer.