summaryrefslogtreecommitdiff
path: root/src/fr-command-ace.c
diff options
context:
space:
mode:
authorScott Balneaves <[email protected]>2012-11-22 21:30:10 -0600
committerScott Balneaves <[email protected]>2012-11-22 21:30:10 -0600
commit6cab8b63ebbf27525b53cf75ff18d5811fa2d39a (patch)
treede0b4c14457c00003ca8c09a3dc781b423524c34 /src/fr-command-ace.c
parentcee6f9ff77c3c54f5524a7e725183e93e32a8ada (diff)
downloadengrampa-6cab8b63ebbf27525b53cf75ff18d5811fa2d39a.tar.bz2
engrampa-6cab8b63ebbf27525b53cf75ff18d5811fa2d39a.tar.xz
Fix 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;