X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=support%2FUtil%2FMySystem.c;h=30e657c571e9757900a1e807947563c691ba8049;hb=3062f96ccb55d1d05caf9c8782f4961f87b341ce;hp=b78d99aac17b20736a6e3eda39af189a3cfd3fe8;hpb=392c1fa33992bd16e6d98895b70d19428686902f;p=fw%2Fsdcc diff --git a/support/Util/MySystem.c b/support/Util/MySystem.c index b78d99aa..30e657c5 100644 --- a/support/Util/MySystem.c +++ b/support/Util/MySystem.c @@ -249,10 +249,7 @@ merge_command(const char *command, const char *params) static int has_path(const char *path) { - if (strrchr(path, DIR_SEPARATOR_CHAR) == NULL) - return 0; - - return 1; + return splitPath(path, NULL, 0, NULL, 0); }