[geany/geany] ec6798: Do not ignore system() return value to eliminate compiler warning
Jiří Techet
git-noreply at xxxxx
Thu Jul 26 00:02:57 UTC 2012
Branch: refs/heads/document-messages
Author: Jiří Techet <techet at gmail.com>
Committer: Jiří Techet <techet at gmail.com>
Date: Wed, 11 Jan 2012 22:30:10
Commit: ec6798d7614437d162ccab701ac690d6bb81be5f
https://github.com/geany/geany/commit/ec6798d7614437d162ccab701ac690d6bb81be5f
Log Message:
-----------
Do not ignore system() return value to eliminate compiler warning
Modified Paths:
--------------
tagmanager/tm_workspace.c
Modified: tagmanager/tm_workspace.c
8 files changed, 7 insertions(+), 1 deletions(-)
===================================================================
@@ -384,15 +384,21 @@ gboolean tm_workspace_create_global_tags(const char *pre_process, const char **i
*/
if (pre_process != NULL)
{
+ gint ret;
command = g_strdup_printf("%s %s | grep -v -E '^\\s*(G_BEGIN_DECLS|G_END_DECLS)\\s*$' > %s",
pre_process, temp_file, temp_file2);
#ifdef TM_DEBUG
g_message("Executing: %s", command);
#endif
- system(command);
+ ret = system(command);
g_free(command);
g_unlink(temp_file);
g_free(temp_file);
+ if (ret == -1)
+ {
+ g_unlink(temp_file2);
+ return FALSE;
+ }
}
else
{
@@ Diff output truncated at 100000 characters. @@
--------------
This E-Mail was brought to you by github_commit_mail.py (Source: TBD).
More information about the Commits
mailing list