sites

public wiki contents of suckless.org
git clone git://git.suckless.org/sites
Log | Files | Refs

dwm-ipc-v1.5.5-to-v1.5.6.diff (768B)


      1 From b1715f81a342efc118da2f07b1c0d8a639b96a95 Mon Sep 17 00:00:00 2001
      2 From: mihirlad55 <mihirlad55@gmail.com>
      3 Date: Sat, 31 Oct 2020 15:32:39 +0000
      4 Subject: [PATCH] Update from v1.5.5 to v1.5.6
      5 
      6 - Fix ARG_TYPE_NONE passing non-zero value to functions
      7 ---
      8  ipc.c | 2 +-
      9  1 file changed, 1 insertion(+), 1 deletion(-)
     10 
     11 diff --git a/ipc.c b/ipc.c
     12 index e527e23..c404791 100644
     13 --- a/ipc.c
     14 +++ b/ipc.c
     15 @@ -362,7 +362,7 @@ ipc_parse_run_command(char *msg, IPCParsedCommand *parsed_command)
     16      *args = (Arg *)malloc(sizeof(Arg));
     17      *arg_types = (ArgType *)malloc(sizeof(ArgType));
     18      (*arg_types)[0] = ARG_TYPE_NONE;
     19 -    (*args)[0].f = 0;
     20 +    (*args)[0].i = 0;
     21      (*argc)++;
     22    } else if (*argc > 0) {
     23      *args = (Arg *)calloc(*argc, sizeof(Arg));
     24 -- 
     25 2.29.0
     26