Commit c47149d7 authored by Brendan Shanks's avatar Brendan Shanks

macOS: Fix GVGraph.m warning with Xcode 10

parent 0b2b194c
...@@ -45,7 +45,7 @@ extern char *gvplugin_list(GVC_t * gvc, api_t api, const char *str); ...@@ -45,7 +45,7 @@ extern char *gvplugin_list(GVC_t * gvc, api_t api, const char *str);
char *pluginList = gvplugin_list(_graphContext, api, ":"); char *pluginList = gvplugin_list(_graphContext, api, ":");
char *restOfPlugins; char *restOfPlugins;
char *nextPlugin; char *nextPlugin;
for (restOfPlugins = pluginList; nextPlugin = strsep(&restOfPlugins, " ");) { for (restOfPlugins = pluginList; (nextPlugin = strsep(&restOfPlugins, " "));) {
if (*nextPlugin) { if (*nextPlugin) {
char *lastColon = strrchr(nextPlugin, ':'); char *lastColon = strrchr(nextPlugin, ':');
if (lastColon) { if (lastColon) {
......
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