Summary: | kdevelop crashes while parsing cmake list containing execute_process with unset variable | ||
---|---|---|---|
Product: | [Applications] kdevelop | Reporter: | Nikita Krupenko <krnekit> |
Component: | Build tools: CMake | Assignee: | kdevelop-bugs-null |
Status: | RESOLVED FIXED | ||
Severity: | crash | ||
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Unlisted Binaries | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Nikita Krupenko
2010-07-02 12:51:17 UTC
commit eef815585a4271d80220394556ed44af643e03f9 Author: Milian Wolff <mail@milianw.de> Date: Mon Sep 27 14:46:07 2010 +0200 don't try to execute empty command BUG: 243424 diff --git a/projectmanagers/cmake/parser/cmakeprojectvisitor.cpp b/projectmanagers/cmake/parser/cmakeprojectvisitor.cpp index 67bfdbf..b9c5379 100644 --- a/projectmanagers/cmake/parser/cmakeprojectvisitor.cpp +++ b/projectmanagers/cmake/parser/cmakeprojectvisitor.cpp @@ -1327,6 +1327,11 @@ int CMakeProjectVisitor::visit(const ExecuteProcessAst *exec) QList<KProcess*> procs; foreach(const QStringList& _args, exec->commands()) { + if (_args.isEmpty()) + { + kDebug(9032) << "Error: trying to execute empty command"; + break; + } QStringList args(_args); KProcess *p=new KProcess(), *prev=0; if(!procs.isEmpty()) |