aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/cmdline.cpp
diff options
context:
space:
mode:
authorRobin Haberkorn <robin.haberkorn@googlemail.com>2013-03-18 16:56:14 +0100
committerRobin Haberkorn <robin.haberkorn@googlemail.com>2013-03-18 16:56:14 +0100
commit9f6bfcaf9985dd9f6911c95b5df95e1d72a63f0f (patch)
tree2a9984e56e95b822d38d638f12659944c86de0fe /src/cmdline.cpp
parent9886eaf7fd5170bb037df177848c6b5c7df745c2 (diff)
downloadsciteco-9f6bfcaf9985dd9f6911c95b5df95e1d72a63f0f.tar.gz
make sure a (void*)0 is used as sentinels
since including glib.h on LLVM-Clang (32-bit) results in NULL being redefined to 0 and compiler warnings being emitted when NULL is used as sentinels
Diffstat (limited to 'src/cmdline.cpp')
-rw-r--r--src/cmdline.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cmdline.cpp b/src/cmdline.cpp
index e0be9cf..c6dcf2a 100644
--- a/src/cmdline.cpp
+++ b/src/cmdline.cpp
@@ -364,12 +364,12 @@ filename_complete(const gchar *filename, gchar completed)
*dirname = '\0';
while ((basename = (gchar *)g_dir_read_name(dir))) {
- gchar *filename = g_build_filename(dirname, basename, NULL);
+ gchar *filename = g_build_filename(dirname, basename, NIL);
if (g_file_test(filename, G_FILE_TEST_IS_DIR)) {
gchar *new_filename;
new_filename = g_strconcat(filename,
- G_DIR_SEPARATOR_S, NULL);
+ G_DIR_SEPARATOR_S, NIL);
g_free(filename);
filename = new_filename;
}