diff options
author | Anselm R Garbe <garbeam@gmail.com> | 2009-02-21 19:20:11 +0000 |
---|---|---|
committer | Anselm R Garbe <garbeam@gmail.com> | 2009-02-21 19:20:11 +0000 |
commit | f0d1d5206f926f58b259af3294a4eebf53a9e7bd (patch) | |
tree | aa95b961253597bbb9757bda9bdc607f1db7cea8 | |
parent | 1c80c05587e0f9fc23fb774aa2ef3b297fc8f6d8 (diff) | |
download | dwm-f0d1d5206f926f58b259af3294a4eebf53a9e7bd.tar dwm-f0d1d5206f926f58b259af3294a4eebf53a9e7bd.tar.gz dwm-f0d1d5206f926f58b259af3294a4eebf53a9e7bd.tar.bz2 |
some NULL fixes
-rw-r--r-- | dwm.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1294,7 +1294,7 @@ setup(void) { dc.sel[ColBG] = getcolor(selbgcolor); dc.sel[ColFG] = getcolor(selfgcolor); dc.drawable = XCreatePixmap(dpy, root, DisplayWidth(dpy, screen), bh, DefaultDepth(dpy, screen)); - dc.gc = XCreateGC(dpy, root, 0, 0); + dc.gc = XCreateGC(dpy, root, 0, NULL); XSetLineAttributes(dpy, dc.gc, 1, LineSolid, CapButt, JoinMiter); if(!dc.font.set) XSetFont(dpy, dc.gc, dc.font.xfont->fid); @@ -1697,7 +1697,7 @@ main(int argc, char *argv[]) { if(!setlocale(LC_CTYPE, "") || !XSupportsLocale()) fputs("warning: no locale support\n", stderr); - if(!(dpy = XOpenDisplay(0))) + if(!(dpy = XOpenDisplay(NULL))) die("dwm: cannot open display\n"); checkotherwm(); |