diff options
Diffstat (limited to '')
| -rw-r--r-- | draw.c | 6 |
1 files changed, 3 insertions, 3 deletions
| @@ -116,7 +116,7 @@ loadfont(Display *dpy, Fnt *font, const char *fontstr) | |||
| 116 | char **missing, *def; | 116 | char **missing, *def; |
| 117 | int n; | 117 | int n; |
| 118 | 118 | ||
| 119 | missing = 0; | 119 | missing = NULL; |
| 120 | def = "?"; | 120 | def = "?"; |
| 121 | setlocale(LC_ALL, ""); | 121 | setlocale(LC_ALL, ""); |
| 122 | if(font->set) | 122 | if(font->set) |
| @@ -128,7 +128,7 @@ loadfont(Display *dpy, Fnt *font, const char *fontstr) | |||
| 128 | XFreeStringList(missing); | 128 | XFreeStringList(missing); |
| 129 | if(font->set) { | 129 | if(font->set) { |
| 130 | XFreeFontSet(dpy, font->set); | 130 | XFreeFontSet(dpy, font->set); |
| 131 | font->set = 0; | 131 | font->set = NULL; |
| 132 | } | 132 | } |
| 133 | } | 133 | } |
| 134 | if(font->set) { | 134 | if(font->set) { |
| @@ -151,7 +151,7 @@ loadfont(Display *dpy, Fnt *font, const char *fontstr) | |||
| 151 | else { | 151 | else { |
| 152 | if(font->xfont) | 152 | if(font->xfont) |
| 153 | XFreeFont(dpy, font->xfont); | 153 | XFreeFont(dpy, font->xfont); |
| 154 | font->xfont = 0; | 154 | font->xfont = NULL; |
| 155 | font->xfont = XLoadQueryFont(dpy, fontstr); | 155 | font->xfont = XLoadQueryFont(dpy, fontstr); |
| 156 | if (!font->xfont) | 156 | if (!font->xfont) |
| 157 | font->xfont = XLoadQueryFont(dpy, "fixed"); | 157 | font->xfont = XLoadQueryFont(dpy, "fixed"); |
