poke-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] Fix check for empty string


From: Jose E. Marchesi
Subject: Re: [PATCH] Fix check for empty string
Date: Mon, 06 Apr 2020 11:04:37 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux)

Hi Tim.

    2020-04-06  Tim Rühsen  <address@hidden>
    
            * src/pkl-tab.y (load_module): Fix check for empty string.
            * src/poke.c (initialize_user): Likewise.

OK for master.
Thanks!

    ---
     ChangeLog     | 5 +++++
     src/pkl-tab.y | 2 +-
     src/poke.c    | 2 +-
     3 files changed, 7 insertions(+), 2 deletions(-)
    
    diff --git a/src/pkl-tab.y b/src/pkl-tab.y
    index e4f3d385..6a8f17f5 100644
    --- a/src/pkl-tab.y
    +++ b/src/pkl-tab.y
    @@ -233,7 +233,7 @@ load_module (struct pkl_parser *parser,
             do
               {
                 /* Ignore empty entries.  */
    -            if (dir == '\0')
    +            if (*dir == '\0')
                   continue;
    
                 /* Substitute %...% marks.  */
    diff --git a/src/poke.c b/src/poke.c
    index 2cbf9d45..3508f781 100644
    --- a/src/poke.c
    +++ b/src/poke.c
    @@ -482,7 +482,7 @@ initialize_user ()
             char *config_filename = NULL;
    
             /* Ignore empty entries.  */
    -        if (dir == '\0')
    +        if (*dir == '\0')
               continue;
    
             /* Mount the full path and determine whether the resulting
    --
    2.26.0



reply via email to

[Prev in Thread] Current Thread [Next in Thread]