initialize "uri" to NULL. #include "file/file-utils.h"

2007-05-22  Michael Natterer  <mitch@gimp.org>

	* app/main.c (gimp_dbus_open): initialize "uri" to NULL.
	#include "file/file-utils.h"


svn path=/trunk/; revision=22560
This commit is contained in:
Michael Natterer 2007-05-22 11:24:23 +00:00 committed by Michael Natterer
parent 6c9cb2ec8b
commit 3679ac69e8
2 changed files with 8 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2007-05-22 Michael Natterer <mitch@gimp.org>
* app/main.c (gimp_dbus_open): initialize "uri" to NULL.
#include "file/file-utils.h"
2007-05-22 Sven Neumann <sven@gimp.org>
* app/base/tile-manager-private.h: formatting.

View File

@ -55,6 +55,8 @@
#include "core/gimp.h"
#include "file/file-utils.h"
#include "widgets/gimpdbusservice.h"
#include "about.h"
@ -716,7 +718,7 @@ gimp_dbus_open (const gchar **filenames,
for (i = 0, success = TRUE; filenames[i] && success; i++)
{
const gchar *filename = filenames[i];
gchar *uri;
gchar *uri = NULL;
if (file_utils_filename_is_uri (filename, &error))
{