Commits

Anonymous committed ee80f1b

set nick="" not NULL, so it's safe to use anywhere in the command, fix cw_color.sh accordingly

Comments (0)

Files changed (2)

 bg_cyan="$(tput setab 6)"
 bg_white="$(tput setab 7)"
 
-if [ $# -eq 3 ]; then
+if [ $# -eq 3 -a -n "$3" ]; then
     NICK="$3"
 fi
 
 int evq;
 int wins[MAX_WATCH] = {0};
 char paths[MAX_WATCH][PATH_MAX] = {{0}};
-char *nick = NULL;
+char *nick = "";
 
 void win(int wd)
 {