* sim/ucsim/cmd.src/cmdutil.cc: NUL device is detected as CG_FILE type
[fw/sdcc] / support / Util / MySystem.c
index b78d99aac17b20736a6e3eda39af189a3cfd3fe8..30e657c571e9757900a1e807947563c691ba8049 100644 (file)
@@ -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);
 }