summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2009-12-15 18:05:51 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2009-12-15 18:05:51 +0100
commit060f38febbd01f1bb7e343bb33c85ff0aa0f30cd (patch)
treebcac3ccc5f8314b449baac2e43402b65f6484630
parentdd92fc9b28a88ba47560d923064f88e2e523c505 (diff)
downloadabrt-060f38febbd01f1bb7e343bb33c85ff0aa0f30cd.tar.gz
abrt-060f38febbd01f1bb7e343bb33c85ff0aa0f30cd.tar.xz
abrt-060f38febbd01f1bb7e343bb33c85ff0aa0f30cd.zip
move misplaced comment
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r--src/Daemon/MiddleWare.cpp19
1 files changed, 10 insertions, 9 deletions
diff --git a/src/Daemon/MiddleWare.cpp b/src/Daemon/MiddleWare.cpp
index 98feb7b8..eb60ce44 100644
--- a/src/Daemon/MiddleWare.cpp
+++ b/src/Daemon/MiddleWare.cpp
@@ -783,23 +783,24 @@ std::string getDebugDumpDir(const char *pUUID,
static char *guess_app_path(const char* cmdline)
{
- const char *path_start = NULL;
+ const char *path_start;
char *app_path = NULL;
- // +1 to skip the space
+
path_start = strchr(cmdline, ' ');
- /* we found space in cmdline, so it might contain
- path to some script like:
- /usr/bin/python /usr/bin/system-control-network
- */
- if(path_start != NULL)
+ if (path_start != NULL)
{
- // skip the space
+ /* we found space in cmdline, so it might contain
+ path to some script like:
+ /usr/bin/python /usr/bin/system-control-network
+ */
+ /* +1 to skip the space */
path_start++;
/* if the string following the space doesn't start
with '/' it's probably not a full path to app and
we can't use it to determine the package name
*/
- if(*path_start == '/'){
+ if (*path_start == '/')
+ {
int len = strchrnul(path_start,' ') - path_start;
// cut the cmdline arguments
app_path = xstrndup(path_start, len);