tPrevent segfault by checking arg count in atomx - wmutils - X windows manipulation utilities
 (HTM) git clone git://z3bra.org/wmutils
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit 2a8ee9d061996cef9567a30821249c3d06557419
 (DIR) parent f3934749bc90e244bba90a64157be8bc6d31fec3
 (HTM) Author: Willy Goiffon <wgoiffon@softwaymedical.fr>
       Date:   Tue,  3 Dec 2019 17:40:28 +0100
       
       Prevent segfault by checking arg count in atomx
       
       Diffstat:
         M atomx.c                             |       3 +++
       
       1 file changed, 3 insertions(+), 0 deletions(-)
       ---
 (DIR) diff --git a/atomx.c b/atomx.c
       t@@ -103,6 +103,9 @@ main(int argc, char **argv)
                        return -1;
                } ARGEND;
        
       +        if (argc < 1)
       +                return -1;
       +
                key = strtok(argv[0], "=");
                val = strtok(NULL, "=");