summaryrefslogtreecommitdiff
path: root/src/fr-command-ace.c
diff options
context:
space:
mode:
authorSteve Zesch <[email protected]>2012-11-22 19:35:12 -0800
committerSteve Zesch <[email protected]>2012-11-22 19:35:12 -0800
commit13ed1839179d6ee4cd01e3959f29437d549571b6 (patch)
treede0b4c14457c00003ca8c09a3dc781b423524c34 /src/fr-command-ace.c
parentcee6f9ff77c3c54f5524a7e725183e93e32a8ada (diff)
parent6cab8b63ebbf27525b53cf75ff18d5811fa2d39a (diff)
downloadengrampa-13ed1839179d6ee4cd01e3959f29437d549571b6.tar.bz2
engrampa-13ed1839179d6ee4cd01e3959f29437d549571b6.tar.xz
Merge pull request #10 from sbalneav/master
Deprecations and warnings
Diffstat (limited to 'src/fr-command-ace.c')
-rw-r--r--src/fr-command-ace.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/fr-command-ace.c b/src/fr-command-ace.c
index d567feb..ce3a257 100644
--- a/src/fr-command-ace.c
+++ b/src/fr-command-ace.c
@@ -93,8 +93,8 @@ process_line (char *line,
FileData *fdata;
FrCommandAce *ace_comm = FR_COMMAND_ACE (data);
FrCommand *comm = FR_COMMAND (data);
- char **fields;
- const char *field_name;
+ char **fields = NULL;
+ const char *field_name = NULL;
g_return_if_fail (line != NULL);
@@ -140,6 +140,7 @@ process_line (char *line,
else if (ace_comm->command_type == FR_ACE_COMMAND_NONFREE)
field_name = get_last_field (line, 6);
+ g_assert (field_name != NULL);
if (field_name[0] != '/') {
fdata->full_path = g_strconcat ("/", field_name, NULL);
fdata->original_path = fdata->full_path + 1;