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: Tim Rühsen
Subject: Re: [PATCH] Fix check for empty string
Date: Mon, 6 Apr 2020 12:31:06 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.6.0

Pushed.

On 4/6/20 11:04 AM, Jose E. Marchesi wrote:

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]