[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[E-devel] [patch] fix typo in eterm/src/command.c



as pointed out in this warning:
command.c:1206: warning: 'font_atom' is used uninitialized in this function

gc_atom = XInternAtom(Xdisplay, "GC", False);
gc_atom = XInternAtom(Xdisplay, "FONT", False);

that second line is obviously wrong and should be font_atom = ...
-mike

Attachment: pgpqX3jCzGAhz.pgp
Description: PGP signature

Index: command.c
===================================================================
RCS file: /cvs/e/eterm/Eterm/src/command.c,v
retrieving revision 1.113
diff -u -p -r1.113 command.c
--- command.c	18 Aug 2006 17:41:19 -0000	1.113
+++ command.c	14 Oct 2006 05:07:27 -0000
@@ -1125,7 +1125,7 @@ x_resource_dump(int sig)
     /* Create type atoms for future use. */
     pixmap_atom = XInternAtom(Xdisplay, "PIXMAP", False);
     gc_atom = XInternAtom(Xdisplay, "GC", False);
-    gc_atom = XInternAtom(Xdisplay, "FONT", False);
+    font_atom = XInternAtom(Xdisplay, "FONT", False);
 
     /* Look at what *we* think our consumption is. */
 #if DEBUG >= DEBUG_MEM