Commit 51fecc9f authored by Manish Singh's avatar Manish Singh Committed by Manish Singh

#include <stdlib.h> for putenv, initialize var_name to NULL so the logic

2003-11-08  Manish Singh  <yosh@gimp.org>

        * libgimp/gimpui.c (gimp_ui_init): #include <stdlib.h> for putenv,
        initialize var_name to NULL so the logic still works if none of
        the #ifdef cases hit.
parent 1117e079
2003-11-08 Manish Singh <yosh@gimp.org>
* libgimp/gimpui.c (gimp_ui_init): #include <stdlib.h> for putenv,
initialize var_name to NULL so the logic still works if none of
the #ifdef cases hit.
2003-11-08 Michael Natterer <mitch@gimp.org>
* app/plug-in/plug-in-run.c (plug_in_run): cast the return value
......@@ -19,6 +19,8 @@
#include "config.h"
#include <stdlib.h>
#include "gimp.h"
#include "gimpui.h"
......@@ -74,7 +76,7 @@ gimp_ui_init (const gchar *prog_name,
if (display_name)
{
const gchar *var_name;
const gchar *var_name = NULL;
#if defined (GDK_WINDOWING_X11)
var_name = "DISPLAY";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment