• Paul Eggert's avatar
    Pacify gcc 11.1.1 -Wanalyzer-null-argument · 2337869f
    Paul Eggert authored
    * lib-src/etags.c (regexp): Omit member force_explicit_name,
    since it’s always true.  All uses removed.  This lets us
    remove calls to strlen (name) where GCC isn’t smart enough
    to deduce that name must be nonnull.
    * lib-src/movemail.c (main): Fix bug that could cause
    link (tempname, NULL) to be called.
    * src/emacs.c (argmatch): Break check into two ‘if’s,
    since GCC doesn’t seem to be smart enough to check the single ‘if’.
    * src/gtkutil.c (xg_update_menu_item): Fix bug where strcmp
    could be given a NULL arg.
    * src/xfont.c (xfont_list_family): Use nonnull value for dummy
    initial value.
    2337869f
movemail.c 20.7 KB